From e16032e1f0c92ff23c70393eccbac7def14d4bab Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 15 Apr 2016 18:14:19 -0700 Subject: Update some comments --- Alc/panning.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Alc') diff --git a/Alc/panning.c b/Alc/panning.c index 6691373e..9ad9d2a7 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -138,12 +138,12 @@ void CalcDirectionCoeffs(const ALfloat dir[3], ALfloat coeffs[MAX_AMBI_COEFFS]) coeffs[15] = 2.091650066f * x * (x*x - 3.0f*y*y); /* ACN 15 = sqrt(35/8) * X * (X*X - 3*Y*Y) */ } -void CalcAngleCoeffs(ALfloat angle, ALfloat elevation, ALfloat coeffs[MAX_AMBI_COEFFS]) +void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat coeffs[MAX_AMBI_COEFFS]) { ALfloat dir[3] = { - sinf(angle) * cosf(elevation), + sinf(azimuth) * cosf(elevation), sinf(elevation), - -cosf(angle) * cosf(elevation) + -cosf(azimuth) * cosf(elevation) }; CalcDirectionCoeffs(dir, coeffs); } -- cgit v1.2.3