aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-23 16:13:13 -0700
committerChris Robinson <[email protected]>2014-03-23 16:13:13 -0700
commitf5e10b99451cff5928cc41f17a56b26fbf12a72a (patch)
tree32b6f791ba0ccefa36afdc7cd546c7a89355b203 /Alc
parent52deb557d5466e7dd0b78dceb16f2ad5296bbcd4 (diff)
Fix Neon gain step loops
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer_neon.c4
1 files 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;