From f5e10b99451cff5928cc41f17a56b26fbf12a72a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 23 Mar 2014 16:13:13 -0700 Subject: [PATCH] Fix Neon gain step loops --- Alc/mixer_neon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c index cdc889c5..f5d1148e 100644 --- a/Alc/mixer_neon.c +++ b/Alc/mixer_neon.c @@ -93,7 +93,7 @@ void MixDirect_Neon(DirectParams *params, const ALfloat *restrict data, ALuint s if(Step != 1.0f && Counter > 0) { DrySend = params->Mix.Gains.Current[srcchan][c]; - if(BufferSize-pos > 3 && Counter-pos > 3) + for(;BufferSize-pos > 3 && Counter-pos > 3;pos+=4) { OutBuffer[c][OutPos+pos ] += data[pos ]*DrySend; DrySend *= Step; @@ -146,7 +146,7 @@ void MixSend_Neon(SendParams *params, const ALfloat *restrict data, if(Step != 1.0f && Counter > 0) { WetGain = params->Gain.Current; - if(BufferSize-pos > 3 && Counter-pos > 3) + for(;BufferSize-pos > 3 && Counter-pos > 3;pos+=4) { OutBuffer[0][OutPos+pos ] += data[pos ]*WetGain; WetGain *= Step;