RetroBASIC
Retrogamecoding(.org) => EGSL => Topic started by: GEEK on October 28, 2013, 10:16:11 PM
-
does anyone know hop to immediately stop a playing or looping sound?
not mute it, but stop it from playing?
thanks in advance (:
-
A playing sound can't be stopped. Only music can be paused.
Playsound works like this:
playsound (soundname,volume, channel, loop)
Volume can range from 0 - 255.
Channel is a sound channel from 0-6 which means that 7 sounds can be played at the same time. Use -1 for EGSL to choose the next free sound channel.
Loop means: -1 = infinite, 0 = once, 1 = twice,...
Hope that helps.
-
That certainly helps!
stopsound() could be a handy function in the next version maybe? (:
thank you!