IsChannelPlaying (int channel)
Returns 1 if sound channel number CHANNEL is currently playing sound. If the specified
channel is not currently playing anything, 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.
See the description of PlaySoundEx for more on sound channels.
Example:
if (IsChannelPlaying(3)==0)
PlaySoundEx(20, 3);
will play sound20 on channel 3 if no other sound is playing.
See Also: IsSoundPlaying, PlaySoundEx
|