diff options
author | Chris Robinson <[email protected]> | 2018-12-31 18:07:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-31 18:07:00 -0800 |
commit | d8eecc89e0dfd4441f2d47e274c98b184a9bb4f0 (patch) | |
tree | d787426a0fb0e7824ed73a4a0a47c5dba7dab7db /OpenAL32/Include | |
parent | 5a9a1c8d7d97f589d978ff00859797e76b087a73 (diff) |
Pass a reference to an array instead of a pointer
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 08e6319e..f575ba52 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -415,7 +415,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); |