aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-28 03:58:58 -0700
committerChris Robinson <[email protected]>2012-04-28 03:58:58 -0700
commit267d38cf2057bb78f5d03c7f923573d1da2c84be (patch)
treec7a851382adfa24370ae916d3e16fb0c75bfb627 /Alc/panning.c
parent26456f13e19dd15bdb9e56f85660568707817a7e (diff)
Flip the parameters to aluCart2LUTpos, so it behaves a bit more like atan2
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 3d82f9fe..0e09bc5c 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -150,10 +150,10 @@ static ALfloat aluLUTpos2Angle(ALint pos)
return aluAtan((ALfloat)(pos - 3 * QUADRANT_NUM) / (ALfloat)(4 * QUADRANT_NUM - pos)) - F_PI_2;
}
-ALint aluCart2LUTpos(ALfloat re, ALfloat im)
+ALint aluCart2LUTpos(ALfloat im, ALfloat re)
{
ALint pos = 0;
- ALfloat denom = aluFabs(re) + aluFabs(im);
+ ALfloat denom = aluFabs(im) + aluFabs(re);
if(denom > 0.0f)
pos = (ALint)(QUADRANT_NUM*aluFabs(im) / denom + 0.5);