IsSoundPlaying ()
Returns 1 if there is currently a sound effect playing. This could be
a manually started sound (eg. with PlaySound) or an automatic sound (eg.
with GiveScore).
If the sound has finished, or none was played, returns 0.
NOTE: Be careful with this function for actions like looping sounds, since
if the user doesn't have a sound card this will always return 0.
NOTE: This function does not report if background music or ambient sounds are playing.
Example:
if (IsSoundPlaying()==0)
PlaySound(20);
will play sound20 if no sound is playing.
See Also: GetCurrentMusic, IsChannelPlaying
|