From 0bca771a88f83e77cd6a5eb04757125b4fa5dc6c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 15 Aug 2012 08:19:04 -0700 Subject: Apply HRTF mixer coefficients with stepping using SSE --- Alc/mixer_inc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Alc/mixer_inc.c') diff --git a/Alc/mixer_inc.c b/Alc/mixer_inc.c index b7051f64..3e9d7f46 100644 --- a/Alc/mixer_inc.c +++ b/Alc/mixer_inc.c @@ -107,15 +107,7 @@ void MERGE4(MixDirect_Hrtf_,SAMPLER,_,SUFFIX)( Values[Offset&HRIR_MASK][1] = 0.0f; Offset++; - for(c = 0;c < HRIR_LENGTH;c++) - { - const ALuint off = (Offset+c)&HRIR_MASK; - Values[off][0] += Coeffs[c][0] * left; - Values[off][1] += Coeffs[c][1] * right; - Coeffs[c][0] += CoeffStep[c][0]; - Coeffs[c][1] += CoeffStep[c][1]; - } - + ApplyCoeffsStep(Offset, Values, Coeffs, CoeffStep, left, right); DryBuffer[OutPos][FrontLeft] += Values[Offset&HRIR_MASK][0]; DryBuffer[OutPos][FrontRight] += Values[Offset&HRIR_MASK][1]; -- cgit v1.2.3