diff options
author | Chris Robinson <[email protected]> | 2019-02-19 15:39:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-19 15:39:33 -0800 |
commit | 194fcb6bb7d81c5a82c9437c7ed7dfdb7da0a3e1 (patch) | |
tree | 89c0319608082ae1f676655d3169b9ca44a335e9 /OpenAL32/Include/alu.h | |
parent | a75bc26173252b26ff2a75c5851b5399b025152a (diff) |
Rename MAX_AMBI_COEFFS and MAX_AMBI2D_COEFFS
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r-- | OpenAL32/Include/alu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index d5cb513d..052302b8 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -369,7 +369,7 @@ void aluSelectPostProcess(ALCdevice *device); * second, and third parameters respectively -- simply negate X and Z. */ void CalcAmbiCoeffs(const ALfloat y, const ALfloat z, const ALfloat x, const ALfloat spread, - ALfloat (&coeffs)[MAX_AMBI_COEFFS]); + ALfloat (&coeffs)[MAX_AMBI_CHANNELS]); /** * CalcDirectionCoeffs @@ -378,7 +378,7 @@ void CalcAmbiCoeffs(const ALfloat y, const ALfloat z, const ALfloat x, const ALf * vector must be normalized (unit length), and the spread is the angular width * of the sound (0...tau). */ -inline void CalcDirectionCoeffs(const ALfloat (&dir)[3], ALfloat spread, ALfloat (&coeffs)[MAX_AMBI_COEFFS]) +inline void CalcDirectionCoeffs(const ALfloat (&dir)[3], ALfloat spread, ALfloat (&coeffs)[MAX_AMBI_CHANNELS]) { /* Convert from OpenAL coords to Ambisonics. */ CalcAmbiCoeffs(-dir[0], dir[1], -dir[2], spread, coeffs); @@ -391,7 +391,7 @@ inline void CalcDirectionCoeffs(const ALfloat (&dir)[3], ALfloat spread, ALfloat * azimuth and elevation parameters are in radians, going right and up * respectively. */ -inline void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread, ALfloat (&coeffs)[MAX_AMBI_COEFFS]) +inline void CalcAngleCoeffs(ALfloat azimuth, ALfloat elevation, ALfloat spread, ALfloat (&coeffs)[MAX_AMBI_CHANNELS]) { ALfloat x = -std::sin(azimuth) * std::cos(elevation); ALfloat y = std::sin(elevation); |