diff options
author | Chris Robinson <[email protected]> | 2013-11-10 05:52:22 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-11-10 05:52:22 -0800 |
commit | 25b9c3d0c15e959d544f5d0ac7ea507ea5f6d69f (patch) | |
tree | 7ad82f7947d40f3926377eb67b76d5183cf6d1b3 /Alc/mixer_inc.c | |
parent | 4386ee32ce24a19bcb0577322d5b12a9db7c69f2 (diff) |
Apply HRTF coefficient stepping separately
Diffstat (limited to 'Alc/mixer_inc.c')
-rw-r--r-- | Alc/mixer_inc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index 6cffba66..17be5cde 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -18,11 +18,9 @@ #define MixDirect_Hrtf MERGE2(MixDirect_Hrtf_,SUFFIX) -static inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*restrict Values)[2], - const ALuint irSize, +static inline void ApplyCoeffsStep(const ALuint irSize, ALfloat (*restrict Coeffs)[2], - const ALfloat (*restrict CoeffStep)[2], - ALfloat left, ALfloat right); + const ALfloat (*restrict CoeffStep)[2]); static inline void ApplyCoeffs(ALuint Offset, ALfloat (*restrict Values)[2], const ALuint irSize, ALfloat (*restrict Coeffs)[2], @@ -92,9 +90,10 @@ void MixDirect_Hrtf(const DirectParams *params, const ALfloat *restrict data, AL Values[(Offset+IrSize)&HRIR_MASK][1] = 0.0f; Offset++; - ApplyCoeffsStep(Offset, Values, IrSize, Coeffs, CoeffStep, left, right); + ApplyCoeffs(Offset, Values, IrSize, Coeffs, left, right); DryBuffer[FrontLeft][OutPos] += Values[Offset&HRIR_MASK][0]; DryBuffer[FrontRight][OutPos] += Values[Offset&HRIR_MASK][1]; + ApplyCoeffsStep(IrSize, Coeffs, CoeffStep); OutPos++; Counter--; |