EmitSound, breaking my head on this :)

Blitz3D Forums/Blitz3D Programming/EmitSound, breaking my head on this :)

Hi!

Simple to explain, but I haven't been able to get this right:

Here I have an emitted sound:

; sound previously loaded with load3DSound
s\channel = EmitSound(m\sound,m\cubeEntity)


Later on, I want to delete the sound again:

FreeEntity s\channel ; doesnt work
FreeEntity s\cubeEntity ; works
delete s ; works


The weird thing is: s\channel DOES hold an entity
I did: RuntimeError (s\channel)
but when I want to free the entity and make the sound stop, it tells me the entity cannot be found.

What I'm doing wrong here?