mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
see, Arisotura, was it that hard?
This commit is contained in:
10
src/SPU.cpp
10
src/SPU.cpp
@ -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;
|
||||
|
Reference in New Issue
Block a user