aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
committerChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
commita421e515befd1916d57e7668ee98c1a5dfe63dab (patch)
tree68d69e41030ccfec34ac89175edec66e99b7660b /Alc/hrtf.c
parent11365b42c7fedaef61d7123c390c429260eae52f (diff)
Use a helper macro for pi*2
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index e772062a..49bb97a3 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -92,7 +92,7 @@ static void CalcEvIndices(const struct Hrtf *Hrtf, ALfloat ev, ALuint *evidx, AL
*/
static void CalcAzIndices(const struct Hrtf *Hrtf, ALuint evidx, ALfloat az, ALuint *azidx, ALfloat *azmu)
{
- az = (F_PI*2.0f + az) * Hrtf->azCount[evidx] / (F_PI*2.0f);
+ az = (F_2PI + az) * Hrtf->azCount[evidx] / (F_2PI);
azidx[0] = fastf2u(az) % Hrtf->azCount[evidx];
azidx[1] = (azidx[0] + 1) % Hrtf->azCount[evidx];
*azmu = az - floorf(az);