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

IsMusicPlaying

IsMusicPlaying ()
Returns 1 if the background music track is still playing. If you are using the Repeat Music option, this will always return 1 since the music will loop round when it finishes. Otherwise, this will return 0 once the current track finishes.

Example:

if(IsMusicPlaying()==0)
PlayMusic(3);
will play music3 if no music is playing.

See Also: GetCurrentMusic


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