ID:2140788
 
(See the best response by Nadrew.)
I can't seem to figure out how to make a looping sound stop.

I have a file, var/sound/powerloop, which i start playing at a different part of this code


Now i'm trying to stop playing it

https://images-ext-2.discordapp.net/ eyJ1cmwiOiJodHRwOi8vaS5pbWd1ci5jb20vRWkwSHpaNS5wbmcifQ.vpKM2 sXboLB0_Py92ZdP2iQj_UE.png


Neither of these methods work
Try setting the status to SOUND_MUTE | SOUND_UPDATE before resending.

If that doesn't work, make sure to set the sound channel. Sending a null sound (sound(null), not just null) to that channel will stop the sound playing in that channel.
Best response
You need to set the SOUND_UPDATE flag before updating existing sounds.

powerloop.status = SOUND_PAUSE | SOUND_UPDATE


Using SOUND_MUTE will continue playing the sound, it'll just be muted, pausing it will allow you to pause and unpause it if you want.

You can also send a null sound to the same channel as a playing sound to stop it from playing, if you're using a channel, that is.