From b923eb187991a8db56fd23cffa70f946ce24c1ff Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 28 May 2019 22:44:50 -0700 Subject: Use FloatBufferLine with the HRTF mixer functions --- Alc/mixer/mixer_c.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Alc/mixer/mixer_c.cpp') diff --git a/Alc/mixer/mixer_c.cpp b/Alc/mixer/mixer_c.cpp index 6ee5df88..79ee305b 100644 --- a/Alc/mixer/mixer_c.cpp +++ b/Alc/mixer/mixer_c.cpp @@ -117,29 +117,29 @@ static inline void ApplyCoeffs(ALsizei /*Offset*/, float2 *RESTRICT Values, cons } template<> -void MixHrtf_(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, const ALfloat *data, - float2 *RESTRICT AccumSamples, const ALsizei OutPos, const ALsizei IrSize, +void MixHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, + const ALfloat *InSamples, float2 *AccumSamples, const ALsizei OutPos, const ALsizei IrSize, MixHrtfParams *hrtfparams, const ALsizei BufferSize) { - MixHrtfBase(LeftOut, RightOut, data, AccumSamples, OutPos, IrSize, hrtfparams, - BufferSize); + MixHrtfBase(LeftOut, RightOut, InSamples, AccumSamples, OutPos, IrSize, + hrtfparams, BufferSize); } template<> -void MixHrtfBlend_(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, - const ALfloat *data, float2 *RESTRICT AccumSamples, const ALsizei OutPos, const ALsizei IrSize, +void MixHrtfBlend_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, + const ALfloat *InSamples, float2 *AccumSamples, const ALsizei OutPos, const ALsizei IrSize, const HrtfParams *oldparams, MixHrtfParams *newparams, const ALsizei BufferSize) { - MixHrtfBlendBase(LeftOut, RightOut, data, AccumSamples, OutPos, IrSize, oldparams, - newparams, BufferSize); + MixHrtfBlendBase(LeftOut, RightOut, InSamples, AccumSamples, OutPos, IrSize, + oldparams, newparams, BufferSize); } template<> -void MixDirectHrtf_(ALfloat *RESTRICT LeftOut, ALfloat *RESTRICT RightOut, - const ALfloat (*data)[BUFFERSIZE], float2 *RESTRICT AccumSamples, DirectHrtfState *State, +void MixDirectHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, + const FloatBufferLine *InSamples, float2 *AccumSamples, DirectHrtfState *State, const ALsizei NumChans, const ALsizei BufferSize) { - MixDirectHrtfBase(LeftOut, RightOut, data, AccumSamples, State, NumChans, + MixDirectHrtfBase(LeftOut, RightOut, InSamples, AccumSamples, State, NumChans, BufferSize); } -- cgit v1.2.3