aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-05-14 05:28:06 -0700
committerChris Robinson <[email protected]>2018-05-14 05:28:06 -0700
commitdf9faba68972bf3d4aafeae5fc61d5af1b525efe (patch)
tree609f7cf2b5353da8c733f488f1033e1ab0e14114 /Alc
parent5272caf7f4cf295d3fd7ca5d70b732c9aae5978f (diff)
Use more accurate elevations for virtual HRTF speaker positions
Diffstat (limited to 'Alc')
-rw-r--r--Alc/panning.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 7f9e74e2..aaf3f2ca 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -816,10 +816,10 @@ static void InitHrtfPanning(ALCdevice *device)
/* NOTE: azimuth goes clockwise. */
static const struct AngularPoint AmbiPoints[] = {
{ DEG2RAD( 90.0f), DEG2RAD( 0.0f) },
- { DEG2RAD( 35.0f), DEG2RAD( 45.0f) },
- { DEG2RAD( 35.0f), DEG2RAD( 135.0f) },
- { DEG2RAD( 35.0f), DEG2RAD(-135.0f) },
- { DEG2RAD( 35.0f), DEG2RAD( -45.0f) },
+ { DEG2RAD( 35.2643897f), DEG2RAD( 45.0f) },
+ { DEG2RAD( 35.2643897f), DEG2RAD( 135.0f) },
+ { DEG2RAD( 35.2643897f), DEG2RAD(-135.0f) },
+ { DEG2RAD( 35.2643897f), DEG2RAD( -45.0f) },
{ DEG2RAD( 0.0f), DEG2RAD( 0.0f) },
{ DEG2RAD( 0.0f), DEG2RAD( 45.0f) },
{ DEG2RAD( 0.0f), DEG2RAD( 90.0f) },
@@ -828,10 +828,10 @@ static void InitHrtfPanning(ALCdevice *device)
{ DEG2RAD( 0.0f), DEG2RAD(-135.0f) },
{ DEG2RAD( 0.0f), DEG2RAD( -90.0f) },
{ DEG2RAD( 0.0f), DEG2RAD( -45.0f) },
- { DEG2RAD(-35.0f), DEG2RAD( 45.0f) },
- { DEG2RAD(-35.0f), DEG2RAD( 135.0f) },
- { DEG2RAD(-35.0f), DEG2RAD(-135.0f) },
- { DEG2RAD(-35.0f), DEG2RAD( -45.0f) },
+ { DEG2RAD(-35.2643897f), DEG2RAD( 45.0f) },
+ { DEG2RAD(-35.2643897f), DEG2RAD( 135.0f) },
+ { DEG2RAD(-35.2643897f), DEG2RAD(-135.0f) },
+ { DEG2RAD(-35.2643897f), DEG2RAD( -45.0f) },
{ DEG2RAD(-90.0f), DEG2RAD( 0.0f) },
};
static const ALfloat AmbiMatrixFOA[][MAX_AMBI_COEFFS] = {