STOPSOUND not working

Previous topic - Next topic

MrTAToad

STOPSOUND (with the correct channel) doesn't actually stop a sound working :

Code (glbasic) Select
PLAYSOUND (5, mx/100, my/100)
STOPSOUND 5


Plays the sound, but doesn't stop it.

Kitty Hello

you must stopsound the return value of playsoud (it returns a handle)

backslider

Ahhh Kitty xD You´re too fast!^^

local sound%
sound%=playsound(5,mx/100,my/100)
stopsound sound%

cheers  :D

MrTAToad

Ah yes, forgot about the handle being needed... :good: