see, Arisotura, was it that hard?

This commit is contained in:
Arisotura
2019-09-04 16:29:40 +02:00
parent 1b40149b0a
commit 02a6fe182c
4 changed files with 63 additions and 11 deletions

View File

@ -738,6 +738,16 @@ void Mix(u32 samples)
}
void TrimOutput()
{
const int halflimit = (OutputBufferSize / 2);
int readpos = OutputWriteOffset - (halflimit*2);
if (readpos < 0) readpos += (OutputBufferSize*2);
OutputReadOffset = readpos;
}
void DrainOutput()
{
OutputReadOffset = 0;