diff options
author | Chris Robinson <[email protected]> | 2012-04-28 03:58:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-04-28 03:58:58 -0700 |
commit | 267d38cf2057bb78f5d03c7f923573d1da2c84be (patch) | |
tree | c7a851382adfa24370ae916d3e16fb0c75bfb627 /Alc/alcEcho.c | |
parent | 26456f13e19dd15bdb9e56f85660568707817a7e (diff) |
Flip the parameters to aluCart2LUTpos, so it behaves a bit more like atan2
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 150720a6..2448397c 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -122,7 +122,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCdevice *Device, const ALeffec dirGain = aluFabs(lrpan); /* First tap panning */ - pos = aluCart2LUTpos(0.0f, ((lrpan>0.0f)?-1.0f:1.0f)); + pos = aluCart2LUTpos(((lrpan>0.0f)?-1.0f:1.0f), 0.0f); ChannelGain = Device->PanningLUT[pos]; for(i = 0;i < Device->NumChan;i++) @@ -132,7 +132,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCdevice *Device, const ALeffec } /* Second tap panning */ - pos = aluCart2LUTpos(0.0f, ((lrpan>0.0f)?1.0f:-1.0f)); + pos = aluCart2LUTpos(((lrpan>0.0f)?1.0f:-1.0f), 0.0f); ChannelGain = Device->PanningLUT[pos]; for(i = 0;i < Device->NumChan;i++) |