diff options
author | Chris Robinson <[email protected]> | 2015-09-13 08:46:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-09-13 08:46:48 -0700 |
commit | b348abf5c31f58e8de62f0b33b7b110f6448d035 (patch) | |
tree | cf3f04b47f39dddf805f22bf24d9e26e17a7931f /Alc/hrtf.c | |
parent | 2763f4096cf0250931fd75e251fe7d7f2b38763a (diff) |
Rename F_2PI to F_TAU
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r-- | Alc/hrtf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ static void CalcEvIndices(ALuint evcount, ALfloat ev, ALuint *evidx, ALfloat *ev */ static void CalcAzIndices(ALuint azcount, ALfloat az, ALuint *azidx, ALfloat *azmu) { - az = (F_2PI + az) * azcount / F_2PI; + az = (F_TAU + az) * azcount / F_TAU; azidx[0] = fastf2u(az) % azcount; azidx[1] = (azidx[0] + 1) % azcount; *azmu = az - floorf(az); @@ -359,8 +359,8 @@ void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, const ALuint num_chans, ALflo lidx = evoffset + azi_idx; ridx = evoffset + ((azcount-azi_idx) % azcount); - az = (ALfloat)azi_idx / (ALfloat)azcount * F_2PI; - if(az > F_PI) az -= F_2PI; + az = (ALfloat)azi_idx / (ALfloat)azcount * F_TAU; + if(az > F_PI) az -= F_TAU; x = cosf(-az) * cosf(elev); y = sinf(-az) * cosf(elev); |