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/alcReverb.c | |
parent | 26456f13e19dd15bdb9e56f85660568707817a7e (diff) |
Flip the parameters to aluCart2LUTpos, so it behaves a bit more like atan2
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r-- | Alc/alcReverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index f11b4ee4..b5c85999 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -1053,7 +1053,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection * approximation of the expansion of sound across the speakers from the * panning direction. */ - pos = aluCart2LUTpos(earlyPan[2], earlyPan[0]); + pos = aluCart2LUTpos(earlyPan[0], earlyPan[2]); ChannelGain = Device->PanningLUT[pos]; dirGain = aluSqrt((earlyPan[0] * earlyPan[0]) + (earlyPan[2] * earlyPan[2])); @@ -1066,7 +1066,7 @@ static ALvoid Update3DPanning(const ALCdevice *Device, const ALfloat *Reflection } - pos = aluCart2LUTpos(latePan[2], latePan[0]); + pos = aluCart2LUTpos(latePan[0], latePan[2]); ChannelGain = Device->PanningLUT[pos]; dirGain = aluSqrt((latePan[0] * latePan[0]) + (latePan[2] * latePan[2])); |