Don't start audio device on resume if audio is disabled

This commit is contained in:
wheremyfoodat 2024-02-25 18:36:35 +02:00 committed by GitHub
parent d459cb1d6c
commit 9d8868cffd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}