spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Multimedia functions

IsChannelPlaying

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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.