Function IsSongPlaying()

From Uzebox Wiki
Revision as of 01:25, 22 April 2016 by Uze (talk | contribs) (moved Function IsSongPLaying() to Function IsSongPlaying(): Typo in the name)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Prototype

bool IsSongPlaying();

Description

Indicate the playing state of the music engine.

Parameters

None

Returns

true if song is currently playing, false otherwise.

Video Modes

All

Since

V1

Notes

If the song contains a loop, this function will always return true.

StartSong(song_ending);
while(1){
 if(!IsSongPlaying()){
  Print(10,10,PSTR("Song has ended!"));
  break;
 }
}