Stop playing a Sound

Started by !RELOADED¡, Jun 21, 2019, 11:52 PM

Previous topic - Next topic

!RELOADED¡

I'm making a music player for a system I'm doing, and I'd like to know if it's possible that the music stops when I press the STOP button and what function would it be?

umar4911

I am gamer, programmer and hacker. Try to find me!
xD

!RELOADED¡

The function that I am using is that of PlaySoundForPlayer, and I have the doubt to know if the sound could be stopped

NicusorN5

You can use something like that to stop the sound:
for(local i =0 ; i < 1000;i++) PlaySound( normal params but play an empty sound)
Because you will 'overflow' the sound memory and the sound card will play the empty sound instead afaik.

!RELOADED¡

I tried your recommendation using PlaySound (player.World, 99999, player.Pos) as an example, but it does not work and it continues to play the sound, how does it work?

Luis_Labarca


hello friend that works does not exist only works to play once the audio started can not be stopped until I finish in a while I asked that question and you can not :-\
My server RP
IP: 51.222.28.159:8194

NicusorN5

Quote from: Markhoz on Jun 23, 2019, 06:22 AMI tried your recommendation using PlaySound (player.World, 99999, player.Pos) as an example, but it does not work and it continues to play the sound, how does it work?
Use an existing sound.

!RELOADED¡

It does not work with an existing sound either. but likewise thank you for answering

Luis_Labarca

#8
Quote from: Markhoz on Jun 23, 2019, 06:40 PMIt does not work with an existing sound either. but likewise thank you for answering

friend does not work because that stop sound function does not exist for PlaySound ()

I also asked me how to stop a sound and they told me that I could not :-\ :-\
My server RP
IP: 51.222.28.159:8194