diff options
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; } } |