3d sound problems

Blitz3D Forums/Blitz3D Programming/3d sound problems

D4NM4N(Posted 2004) [#1]
is thee a way of detecting a 3d sound that has finished? i want to run my object into a wall and get a crunch. but it plays too many times.


Nordvall(Posted 2004) [#2]
Something like this might work:

Global snd=Load3DSound("sounds\bla.wav")
Global chn=0

if Not ChannelPlaying(chn)
chn=EmitSound(snd,p\entity)
endif