diff options
Diffstat (limited to 'Alc/panning.c')
-rw-r--r-- | Alc/panning.c | 4 |
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); |