summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index ec0e1761..61e11bbf 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -779,6 +779,8 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
memcpy(&Data[DataSize*Channels], NextBuf->data, ulExtraSamples);
}
}
+ else
+ memset(&Data[DataSize*Channels], 0, (ALBuffer->padding*Channels*2));
}
BufferSize = min(BufferSize, (SamplesToDo-j));