From fa76168683863aeab8430110ffed58cf1041677e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 6 Sep 2008 14:08:53 -0700 Subject: Clear the end of the buffer when at the end of the queue and not looping --- Alc/ALu.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- cgit v1.2.3