audio_music_is_playing

Checks to see if music is currently playing (OBSOLETED).

Syntax:

audio_music_is_playing();


Returns: Boolean


Description

WARNING! This function has been obsoleted and you should use audio_is_playing instead.

This function will check to see if a music file is currently playing, returning true if it is and false if it is not.


Example:

if !audio_music_is_playing()
   {
   audio_play_music(snd_Intro, true);
   }

The above code checks to see if any music is playing and if it is not, it then plays the track indexed in "snd_Intro".


Back: Audio
Next: audio_music_gain
© Copyright YoYo Games Ltd. 2018 All Rights Reserved