From ecdc93f3ca3b12ab0b226864cf8cd579140f1484 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 14 Feb 2016 03:23:06 -0800 Subject: Calculate HRTF stepping params right before mixing This means we track the current params and the target params, rather than the target params and the stepping. This closer matches the non-HRTF mixers. --- Alc/mixer_sse.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Alc/mixer_sse.c') diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c index 090b7a5a..942e0453 100644 --- a/Alc/mixer_sse.c +++ b/Alc/mixer_sse.c @@ -71,23 +71,6 @@ const ALfloat *Resample_bsinc32_SSE(const BsincState *state, const ALfloat *src, } -static inline void SetupCoeffs(ALfloat (*restrict OutCoeffs)[2], - const HrtfParams *hrtfparams, - ALuint IrSize, ALuint Counter) -{ - const __m128 counter4 = _mm_set1_ps((float)Counter); - __m128 coeffs, step4; - ALuint i; - - for(i = 0;i < IrSize;i += 2) - { - step4 = _mm_load_ps(&hrtfparams->CoeffStep[i][0]); - coeffs = _mm_load_ps(&hrtfparams->Coeffs[i][0]); - coeffs = _mm_sub_ps(coeffs, _mm_mul_ps(step4, counter4)); - _mm_store_ps(&OutCoeffs[i][0], coeffs); - } -} - static inline void ApplyCoeffsStep(ALuint Offset, ALfloat (*restrict Values)[2], const ALuint IrSize, ALfloat (*restrict Coeffs)[2], -- cgit v1.2.3