aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index 98bcefc2..09ac1709 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -359,9 +359,9 @@ void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, const ALfloat ambi_coeffs[4],
az = (ALfloat)azi_idx / (ALfloat)azcount * F_2PI;
if(az > F_PI) az -= F_2PI;
- x = cosf(az) * cosf(elev);
- y = -sinf(az) * cosf(elev);
- z = sinf(elev);
+ x = cosf(-az) * cosf(elev);
+ y = sinf(-az) * cosf(elev);
+ z = sinf(elev);
gain = 0.0f;
gain += ambi_coeffs[0]*0.7071f; /* sqrt(1.0 / 2.0) */