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
|