aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-09-06 14:08:53 -0700
committerChris Robinson <[email protected]>2008-09-06 14:08:53 -0700
commitfa76168683863aeab8430110ffed58cf1041677e (patch)
tree843b8b543466766fd2010445784ddbfbbe696c6a /Alc
parent5f3329b2c95e2860c7ab8aeaf6d0312385a8e2f6 (diff)
Clear the end of the buffer when at the end of the queue and not looping
Diffstat (limited to 'Alc')
-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));