Altering the pitch of a 3D sound?

Blitz3D Forums/Blitz3D Programming/Altering the pitch of a 3D sound?

CopperCircle(Posted 2003) [#1]
I can`t alter the pitch of a 3D sound, any one else been able too? I seems that the channel commands don`t work correctly with 3D sounds, im also trying to see if a 3D sound is still palying, but it only works sporadicaly.


Hotcakes(Posted 2003) [#2]
Try setting the frequency of the sound before it is attached to an object. 3D sounds when played, have their frequencies adjusted automatically, for the doppler effect. May well be that there's something conflicting in that.


cyberseth(Posted 2003) [#3]
I've been able to set the pitch or volume of 3D sounds, no problem, and have done so in a few 3D games now.

channel = EmitSound(sound,entity)
ChannelPitch channel,?
ChannelVolume channel,?

It could be to do with the way you are keeping track of the channel of the sound that's playing. I find it's best to use types, and then If ChannelPlaying(chn\channel)=0 Then Delete Chn --- It may be that you are using local variables to hold the channels, or you are using the same variable again and again for different sounds.


_PJ_(Posted 2003) [#4]
There is a Doppler Effect example in the Code Archives - dunno if it's any use?

HERE