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