Fix Neon gain step loops

This commit is contained in:
Chris Robinson
2014-03-23 16:13:13 -07:00
parent 52deb557d5
commit f5e10b9945
+2 -2
View File
@@ -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;