SPU2: Fix sound output

Regression from a603aed7db
This commit is contained in:
Stenzek 2023-01-15 21:33:08 +10:00 committed by lightningterror
parent a603aed7db
commit 451c2a244f
1 changed files with 5 additions and 1 deletions

View File

@ -364,13 +364,17 @@ void SndBuffer::_WriteSamples(StereoOut32* bData, int nSamples)
if (SPU2::MsgOverruns())
SPU2::ConLog(" * SPU2 > Overrun Compensation (%d packets tossed)\n", comp / SndOutPacketSize);
lastPct = 0.0; // normalize the timestretcher
_WriteSamples_Safe(bData, nSamples);
#else
if (SPU2::MsgOverruns())
SPU2::ConLog(" * SPU2 > Overrun! 1 packet tossed)\n");
lastPct = 0.0; // normalize the timestretcher
// Toss the packet because we overran the buffer.
return;
#endif
}
_WriteSamples_Safe(bData, nSamples);
}
bool SndBuffer::Init(const char* modname)