3d sound problems

Blitz3D Forums/Blitz3D Programming/3d sound problems

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.

Something like this might work:

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

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