You must be logged in to do that.

SoundIsPlaying

SoundIsPlaying
int SoundIsPlaying(int chan)

Documentation

Returns whether or not a specific channel is currently playing a sound. Useful to help minorly with synching things with sounds, or preventing identical sound effects from overlapping.

Example Usage

// If there is no sound planning on my_channel, play a sound.
if (!SoundIsPlaying(my_channel))
{
	my_channel = PlaySound(sfx);
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.