diff options
author | Chris Robinson <[email protected]> | 2017-02-23 16:44:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-02-23 16:44:59 -0800 |
commit | c2a79f0f7b1d8f9a868e3411797005cefcebafa1 (patch) | |
tree | 3d133c8c88bfd1f87375b22afe3b2abee83e4ede /Alc/panning.c | |
parent | 08948079e93cbb7321be5715df36f54c5e6be3b7 (diff) |
Remove CalcXYZCoeffs and inline CalcAngleCoeffs
Diffstat (limited to 'Alc/panning.c')
-rw-r--r-- | Alc/panning.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Alc/panning.c b/Alc/panning.c index 7b551100..46f134a6 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -36,7 +36,7 @@ #include "bs2b.h" -extern inline void CalcXYZCoeffs(ALfloat x, ALfloat y, ALfloat z, ALfloat spread, ALfloat coeffs[MAX_AMBI_COEFFS]); +extern inline void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread, ALfloat coeffs[MAX_AMBI_COEFFS]); static const ALsizei FuMa2ACN[MAX_AMBI_COEFFS] = { @@ -192,16 +192,6 @@ void CalcDirectionCoeffs(const ALfloat dir[3], ALfloat spread, ALfloat coeffs[MA } } -void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread, ALfloat coeffs[MAX_AMBI_COEFFS]) -{ - ALfloat dir[3] = { - sinf(azimuth) * cosf(elevation), - sinf(elevation), - -cosf(azimuth) * cosf(elevation) - }; - CalcDirectionCoeffs(dir, spread, coeffs); -} - void CalcAnglePairwiseCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread, ALfloat coeffs[MAX_AMBI_COEFFS]) { ALfloat sign = (azimuth < 0.0f) ? -1.0f : 1.0f; |