mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
Don't start audio device on resume if audio is disabled
This commit is contained in:
parent
d459cb1d6c
commit
9d8868cffd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue