diff options
author | Chris Robinson <[email protected]> | 2013-10-08 16:31:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-08 16:31:23 -0700 |
commit | a421e515befd1916d57e7668ee98c1a5dfe63dab (patch) | |
tree | 68d69e41030ccfec34ac89175edec66e99b7660b /Alc/hrtf.c | |
parent | 11365b42c7fedaef61d7123c390c429260eae52f (diff) |
Use a helper macro for pi*2
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r-- | Alc/hrtf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |