diff options
author | Chris Robinson <[email protected]> | 2019-03-03 00:24:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-03 00:24:33 -0800 |
commit | 90d1e1212ba96c57bed51a1febe984dafa0937a0 (patch) | |
tree | b16ffd6d648dc69fd2b55859e2e0ebac0a7d171e /Alc/mixer | |
parent | 2d14de3fb03f891ea38c26c1a203c186db3e58e2 (diff) |
Pass a reference to function for a template parameter
Diffstat (limited to 'Alc/mixer')
-rw-r--r-- | Alc/mixer/hrtfbase.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer/hrtfbase.h b/Alc/mixer/hrtfbase.h index 388d9ba1..ee70f35f 100644 --- a/Alc/mixer/hrtfbase.h +++ b/Alc/mixer/hrtfbase.h @@ -9,7 +9,7 @@ using ApplyCoeffsT = void(ALsizei Offset, HrirArray<ALfloat> &Values, const ALsizei irSize, const HrirArray<ALfloat> &Coeffs, const ALfloat left, const ALfloat right); -template<ApplyCoeffsT ApplyCoeffs> +template<ApplyCoeffsT &ApplyCoeffs> inline void MixHrtfBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, const ALfloat *data, ALsizei Offset, const ALsizei OutPos, const ALsizei IrSize, MixHrtfParams *hrtfparams, HrtfState *hrtfstate, const ALsizei BufferSize) @@ -72,7 +72,7 @@ inline void MixHrtfBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, c hrtfparams->Gain = gain + gainstep*stepcount; } -template<ApplyCoeffsT ApplyCoeffs> +template<ApplyCoeffsT &ApplyCoeffs> inline void MixHrtfBlendBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, const ALfloat *data, ALsizei Offset, const ALsizei OutPos, const ALsizei IrSize, const HrtfParams *oldparams, MixHrtfParams *newparams, HrtfState *hrtfstate, @@ -147,7 +147,7 @@ inline void MixHrtfBlendBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightO newparams->Gain = newGainStep*stepcount; } -template<ApplyCoeffsT ApplyCoeffs> +template<ApplyCoeffsT &ApplyCoeffs> inline void MixDirectHrtfBase(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, const ALfloat (*data)[BUFFERSIZE], DirectHrtfState *State, const ALsizei NumChans, const ALsizei BufferSize) |