Don't start audio device on resume if audio is disabled
This commit is contained in:
@@ -108,7 +108,7 @@ void Emulator::render() {}
|
|||||||
void Emulator::resume() {
|
void Emulator::resume() {
|
||||||
running = (romType != ROMType::None);
|
running = (romType != ROMType::None);
|
||||||
|
|
||||||
if (running) {
|
if (running && config.audioEnabled) {
|
||||||
audioDevice.start();
|
audioDevice.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -413,4 +413,4 @@ void Emulator::setAudioEnabled(bool enable) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dsp->setAudioEnabled(enable);
|
dsp->setAudioEnabled(enable);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user