aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-18 13:46:52 -0700
committerChris Robinson <[email protected]>2015-10-18 13:46:52 -0700
commit9b6b084d6019fe1a9cb9b7586c46d650df1a687d (patch)
tree16b00135d941faa83ed063a5727f0f20b533c153
parentfa320939062e52a8bbab91954bfcdd7e9bbdf56b (diff)
Use the correct realignment size for post-stepping mixing
-rw-r--r--Alc/mixer_neon.c2
-rw-r--r--Alc/mixer_sse.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c
index 0c50140e..a89caeae 100644
--- a/Alc/mixer_neon.c
+++ b/Alc/mixer_neon.c
@@ -118,7 +118,7 @@ void Mix_Neon(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer
Gains[c].Current = gain;
/* Mix until pos is aligned with 4 or the mix is done. */
- minsize = minu(BufferSize, (pos+3)&3);
+ minsize = minu(BufferSize, (pos+3)&~3);
for(;pos < minsize;pos++)
OutBuffer[c][OutPos+pos] += data[pos]*gain;
}
diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c
index 12765486..c618f966 100644
--- a/Alc/mixer_sse.c
+++ b/Alc/mixer_sse.c
@@ -195,7 +195,7 @@ void Mix_SSE(const ALfloat *data, ALuint OutChans, ALfloat (*restrict OutBuffer)
Gains[c].Current = gain;
/* Mix until pos is aligned with 4 or the mix is done. */
- minsize = minu(BufferSize, (pos+3)&3);
+ minsize = minu(BufferSize, (pos+3)&~3);
for(;pos < minsize;pos++)
OutBuffer[c][OutPos+pos] += data[pos]*gain;
}