From ecdfcdbfa579f07cd91f6796ee8579a470aa68b3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 May 2014 21:20:44 -0700 Subject: [PATCH] The lower value of the gain vector contains the closest target value --- Alc/mixer_sse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c index d26866a9..c4e1fdf5 100644 --- a/Alc/mixer_sse.c +++ b/Alc/mixer_sse.c @@ -170,7 +170,7 @@ void MixDirect_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *dat _mm_store_ps(&OutBuffer[c][OutPos+pos], dry4); pos += 4; } while(BufferSize-pos > 3 && Counter-pos > 3); - DrySend = _mm_cvtss_f32(_mm_shuffle_ps(gain, gain, _MM_SHUFFLE(3, 3, 3, 3))); + DrySend = _mm_cvtss_f32(gain); } /* Mix with applying left over gain steps that aren't aligned multiples of 4. */ for(;pos < BufferSize && pos < Counter;pos++) @@ -231,7 +231,7 @@ void MixSend_SSE(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, _mm_store_ps(&OutBuffer[0][OutPos+pos], dry4); pos += 4; } while(BufferSize-pos > 3 && Counter-pos > 3); - WetGain = _mm_cvtss_f32(_mm_shuffle_ps(gain, gain, _MM_SHUFFLE(3, 3, 3, 3))); + WetGain = _mm_cvtss_f32(gain); } for(;pos < BufferSize && pos < Counter;pos++) { -- 2.11.4.GIT