aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-23 15:03:53 -0700
committerChris Robinson <[email protected]>2015-09-23 15:03:53 -0700
commit4bdd58bc83f583136cde917762ead5df90c01485 (patch)
tree699f0425efb6d6b70f3c6af6ed7f9fc7315138b3 /Alc/hrtf.c
parentba4358227897748d9dff6ec37e27b9647db80d66 (diff)
Use N3D scaling instead of FuMa
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index e69578a6..e7fe0f68 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -366,10 +366,10 @@ void GetBFormatHrtfCoeffs(const struct Hrtf *Hrtf, const ALuint num_chans, ALflo
y = sinf(-az) * cosf(elev);
z = sinf(elev);
- ambi_coeffs[0] = 1.4142f;
- ambi_coeffs[1] = y; /* Y */
- ambi_coeffs[2] = z; /* Z */
- ambi_coeffs[3] = x; /* X */
+ ambi_coeffs[0] = 1.0f;
+ ambi_coeffs[1] = 0.5774f * y;
+ ambi_coeffs[2] = 0.5774f * z;
+ ambi_coeffs[3] = 0.5774f * x;
for(c = 0;c < num_chans;c++)
{