diff options
author | Chris Robinson <[email protected]> | 2017-01-17 16:49:26 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-01-17 16:49:26 -0800 |
commit | ba0944af9ba8d851bc5b6ad99f314bbdac269716 (patch) | |
tree | 3031abd32f417c78b52476fccac0aa0ac6611996 /Alc/mixer_inc.c | |
parent | bfb7a6e4c85838bf2f6ed28fba452c55ad50c566 (diff) |
Pass the left and right buffers to the hrtf mixers directly
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r-- | Alc/mixer_inc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index 38b0242e..8215743e 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -23,7 +23,7 @@ static inline void ApplyCoeffs(ALsizei Offset, ALfloat (*restrict Values)[2], ALfloat left, ALfloat right); -void MixHrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei lidx, ALsizei ridx, +void MixHrtf(ALfloat *restrict LeftOut, ALfloat *restrict RightOut, const ALfloat *data, ALsizei Counter, ALsizei Offset, ALsizei OutPos, const ALsizei IrSize, const MixHrtfParams *hrtfparams, HrtfState *hrtfstate, ALsizei BufferSize) @@ -67,9 +67,9 @@ void MixHrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei lidx, ALsizei ri } for(i = 0;i < todo;i++) - OutBuffer[lidx][OutPos+i] += out[i][0]; + LeftOut[OutPos+i] += out[i][0]; for(i = 0;i < todo;i++) - OutBuffer[ridx][OutPos+i] += out[i][1]; + RightOut[OutPos+i] += out[i][1]; OutPos += todo; } @@ -108,14 +108,14 @@ skip_stepping: } for(i = 0;i < todo;i++) - OutBuffer[lidx][OutPos+i] += out[i][0]; + LeftOut[OutPos+i] += out[i][0]; for(i = 0;i < todo;i++) - OutBuffer[ridx][OutPos+i] += out[i][1]; + RightOut[OutPos+i] += out[i][1]; OutPos += todo; } } -void MixDirectHrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei lidx, ALsizei ridx, +void MixDirectHrtf(ALfloat *restrict LeftOut, ALfloat *restrict RightOut, const ALfloat *data, ALsizei Offset, const ALsizei IrSize, ALfloat (*restrict Coeffs)[2], ALfloat (*restrict Values)[2], ALsizei BufferSize) @@ -141,9 +141,9 @@ void MixDirectHrtf(ALfloat (*restrict OutBuffer)[BUFFERSIZE], ALsizei lidx, ALsi } for(i = 0;i < todo;i++) - OutBuffer[lidx][pos+i] += out[i][0]; + LeftOut[pos+i] += out[i][0]; for(i = 0;i < todo;i++) - OutBuffer[ridx][pos+i] += out[i][1]; + RightOut[pos+i] += out[i][1]; pos += todo; } } |