GLBasic User Manual

Main sections

SOUNDPLAYING()

status% = SOUNDPLAYING(channel%)



Returns 1 if a sound is still playing, 0 if it has stopped. The channel% is the value returned from PLAYSOUND().

LOADSOUND "super.wav", 0, 1

ch = PLAYSOUND(0, 0,1)
WHILE SOUNDPLAYING(ch)
    PRINT "Playing...", 100,100
SHOWSCREEN
WEND
PRINT "Stop!", 100, 100
SHOWSCREEN
MOUSEWAIT

See also...