aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
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 09747209..da461dcf 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -53,14 +53,14 @@ static void get_angle_coeffs(const HrtfFilterCoeffs *elev, ALfloat angle, const
}
}
-void GetHrtfCoeffs(ALfloat azimuth, ALfloat angle, const ALshort **left, const ALshort **right)
+void GetHrtfCoeffs(ALfloat elevation, ALfloat angle, const ALshort **left, const ALshort **right)
{
int idx;
- if(azimuth > 90.f) azimuth = 90.f - (azimuth - 90.f);
- else if(azimuth < -90.f) azimuth = -90.f - (azimuth - -90.f);
+ if(elevation > 90.f) elevation = 90.f - (elevation - 90.f);
+ else if(elevation < -90.f) elevation = -90.f - (elevation - -90.f);
- idx = (int)(azimuth/10.0 + 0.5);
+ idx = (int)(elevation/10.0 + 0.5);
if(idx >= 9) return get_angle_coeffs(&Elev90, angle, left, right);
if(idx >= 8) return get_angle_coeffs(&Elev80, angle, left, right);
if(idx >= 7) return get_angle_coeffs(&Elev70, angle, left, right);