I'm having trouble getting Doppler effect to function, and I'm not sure if I am using stupid values or if I need to set something different. The tutorial explains how it works, but doesn't include an example. Does anyone have some example source-code demonstrating working Doppler effect?
For reference, the values I am setting are:
alDopplerFactor is 1.0
alDopplerVelocity is 1.0
alListener, AL_POSITION is 0,0,0
alListener, AL_ORIENTATION is 0,0,-1 0,1,0
alListener, AL_VELOCITY is 0,0,0
alSourcef, AL_PITCH is 1.0
alSource, AL_POSITION is 0,0,0
alSource, AL_VELOCITY is initially 0,0,0, and a couple seconds after playing the source, I change it to 0.2,0.2,0.2
This should result in the pitch becoming higher, correct? I've played around with various different values, but can't seem to produce an audible difference in pitch of the playing source. If needed, I can write a small program and post the source, however I can probably figure out the problem myself if I can look at an example. My guess is I'm leaving out some important step to enable Doppler effect.