From bdb467d09f13b0ce8ebd1453e3705fb8fe9783d2 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:12:09 +0200 Subject: [PATCH] Fix DSP::ForceHeadphoneOut --- src/core/services/dsp.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/services/dsp.cpp b/src/core/services/dsp.cpp index 55d81d833..93de78da1 100644 --- a/src/core/services/dsp.cpp +++ b/src/core/services/dsp.cpp @@ -283,10 +283,7 @@ void DSPService::invalidateDCache(u32 messagePointer) { } void DSPService::forceHeadphoneOut(u32 messagePointer) { - const bool force = mem.read8(messagePointer + 4) != 0; - if (force) { - headphonesInserted = false; - } + headphonesInserted = mem.read8(messagePointer + 4) != 0; log("DSP::ForceHeadphoneOut\n"); mem.write32(messagePointer, IPC::responseHeader(0x20, 1, 0));