From 451c2a244feafe035c0ba62c1983833a26d25ec2 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 15 Jan 2023 21:33:08 +1000 Subject: [PATCH] SPU2: Fix sound output Regression from a603aed7dbaba2ee478eaa1cb2bf1872adcd282c --- pcsx2/SPU2/SndOut.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsx2/SPU2/SndOut.cpp b/pcsx2/SPU2/SndOut.cpp index 45ce03b6af..864ad7df97 100644 --- a/pcsx2/SPU2/SndOut.cpp +++ b/pcsx2/SPU2/SndOut.cpp @@ -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)