aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/mixer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 4658b33b..7671f1b3 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -157,8 +157,9 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
for(chan = 0;chan < NumChannels;chan++)
{
- ALIGN(16) ALfloat SrcData[BUFFERSIZE];
- ALIGN(16) ALfloat ResampledData[BUFFERSIZE];
+ /* +1 for the predictive sample. */
+ ALIGN(16) ALfloat SrcData[BUFFERSIZE+1];
+ ALIGN(16) ALfloat ResampledData[BUFFERSIZE+1];
ALuint SrcDataSize = 0;
if(Source->SourceType == AL_STATIC)