Pan issue on GLFW for Mac

Monkey Forums/Monkey Bug Reports/Pan issue on GLFW for Mac

SlopeOak(Posted 2013) [#1]
Hello,

I'm trying to pan sounds on GLFW target for Mac, and it works, but it's either fully on or fully off. A value of 0.00001 for the pan causes it to be fully right, when it should require 1.0 to be fully right.

To reproduce, I edited the audiotest banana to add a single line:

SetChannelPan 0, 0.0001

I placed that right after the Case 1: in OnUpdate()

When run via GLFW target on my Mac (10.8), this pans 100% right. When run via Flash on my Mac, it behaves as expected (basically panning center).


SlopeOak(Posted 2013) [#2]
It seems you can fix this by changing the SetPan function on this line:

alSource3f( chan->AL_Source(),AL_POSITION,pan,0,0 );

Changing it to something like this:

alSource3f( chan->AL_Source(),AL_POSITION,pan,0,0.1 );


By giving the Z coordinate some value, it seems to work. Perhaps because otherwise even a tiny change from 0,0,0 to 0.00001,0,0 will result in the source being 100% to the right of the listener. But if Y or Z have some value, then the source will never be 100% right or left of the listener.


marksibly(Posted 2013) [#3]
This is fixed for next release (later today hopefully).


SlopeOak(Posted 2013) [#4]
Awesome! Thank you, Mark.