GLBasic User Manual

Main sections

ISMUSICPLAYING()

ok% = ISMUSICPLAYING()



Returns whether music is currently playing (TRUE) or not (FALSE).

Sample:
 
PLAYMUSIC "Music.mp3"
PRINT "Music!", 100, 100
SHOWSCREEN
MOUSEWAIT
if (ISMUSICPLAYING() = 1) then STOPMUSIC // GLBasic does this automatically when ending

See also...