Page 1 of 1

SoundStatus(-1) - check all sounds

Posted: Wed Mar 09, 2022 3:53 am
by OgreVorbis
I'm in a situation where I need to check if ALL sounds have stopped playing before playing another. It looks like I'll have to code a loop, checking IsSound(i) and continuing to increment checking the status of each is stopped. This is kind of annoying considering that we have the ability to stop playing all sounds with StopSound(-1) or #PB_All, but we can't check all of them.

Re: SoundStatus(-1) - check all sounds

Posted: Wed Mar 09, 2022 9:00 am
by BarryG
+1. This would be great, and matches the current command and constant pattern:

Code: Select all

If SoundStatus(#PB_Sound_All)=0
  Debug "No sounds are playing"
EndIf