aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-11-19 09:24:35 -0800
committerChris Robinson <[email protected]>2009-11-19 09:24:35 -0800
commitff8e09495d846f303479e75d11ef8b2e2957265f (patch)
tree7f6ebe3956767cfe8ad70946fec537b4411ce429 /Alc/ALu.c
parente868eef67991f2d858ba4f11836789face0245ad (diff)
Move aluCart2LUTpos to alu.h
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 546da2c7..8f3056b9 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -399,20 +399,6 @@ ALvoid aluInitPanning(ALCcontext *Context)
}
}
-static __inline ALint aluCart2LUTpos(ALfloat re, ALfloat im)
-{
- ALint pos = 0;
- ALfloat denom = aluFabs(re) + aluFabs(im);
- if(denom > 0.0f)
- pos = (ALint)(QUADRANT_NUM*aluFabs(im) / denom + 0.5);
-
- if(re < 0.0)
- pos = 2 * QUADRANT_NUM - pos;
- if(im < 0.0)
- pos = LUT_NUM - pos;
- return pos%LUT_NUM;
-}
-
static ALvoid CalcSourceParams(const ALCcontext *ALContext, ALsource *ALSource,
ALboolean isMono)
{