aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alu.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-09 15:21:24 -0800
committerChris Robinson <[email protected]>2018-12-09 15:21:24 -0800
commitefb8e076c73fb77e342fe9f2e03b214a7f6c787d (patch)
tree3c601cd30717abf6dbc7c4cba140d5aa0d2f2bde /OpenAL32/Include/alu.h
parent6c8f45b5f6eb2c94427078a4fb527f02d44b9f65 (diff)
Pass a reference to an array for a function parameter
Diffstat (limited to 'OpenAL32/Include/alu.h')
-rw-r--r--OpenAL32/Include/alu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 666cd8c0..e011675c 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -411,7 +411,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_COEFFS]);
/**
* CalcDirectionCoeffs
@@ -420,7 +420,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_COEFFS])
{
/* Convert from OpenAL coords to Ambisonics. */
CalcAmbiCoeffs(-dir[0], dir[1], -dir[2], spread, coeffs);
@@ -433,7 +433,7 @@ inline void CalcDirectionCoeffs(const ALfloat dir[3], ALfloat spread, ALfloat co
* 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_COEFFS])
{
ALfloat x = -sinf(azimuth) * cosf(elevation);
ALfloat y = sinf(elevation);