Is playing ?

BlitzMax Forums/BlitzMax Beginners Area/Is playing ?

GregBUG(Posted 2005) [#1]
MySound: tSound = LoadSound("boom.wav")
PlaySound MySound

How can i test if "MySound" is playing ?

thanks!
Gianluca


skidracer(Posted 2005) [#2]
oops, channelplaying is mistakenly undocumented:

' channelplaying.bmx

sound = LoadSound ("shoot.wav")

Input "Hit return to begin channelplaying test, use ctrl-C to exit"

channel=PlaySound (sound)
While True
	Print "ChannelPlaying(channel)="+ChannelPlaying(channel)
Wend



GregBUG(Posted 2005) [#3]
oh... thanks!
ciao
Gianluca.