Cog Audio: Don't overfill the output buffer when asked to reset the buffers
parent
d364d48944
commit
51caf3f4e3
|
@ -54,9 +54,8 @@
|
||||||
{
|
{
|
||||||
if (availOutput)
|
if (availOutput)
|
||||||
{
|
{
|
||||||
// must unlock buffer before waiting, may as well write silence
|
// Unlock the buffer
|
||||||
memset(writePtr, 0, availOutput);
|
[buffer didWriteLength:0];
|
||||||
[buffer didWriteLength:availOutput];
|
|
||||||
}
|
}
|
||||||
[semaphore wait];
|
[semaphore wait];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue