GLBasic User Manual

Main sections

STOPSOUND

STOPSOUND channel%



Stops a sound that is currently playing.

Example
LOADSOUND "Super.wav", 0, 1

PLAYSOUND (0, -1, 1)    // Play the sound
SLEEP 500                // delay for half a second
STOPSOUND 1                // Stop the sound

See also...