From 9d8868cffd00e593349282471b79ea9d73dfb447 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 25 Feb 2024 18:36:35 +0200 Subject: [PATCH] Don't start audio device on resume if audio is disabled --- src/emulator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index 7ddefd6c..a02ead48 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -108,7 +108,7 @@ void Emulator::render() {} void Emulator::resume() { running = (romType != ROMType::None); - if (running) { + if (running && config.audioEnabled) { audioDevice.start(); } } @@ -413,4 +413,4 @@ void Emulator::setAudioEnabled(bool enable) { } dsp->setAudioEnabled(enable); -} \ No newline at end of file +}