fix(config): reimplement muting

This commit is contained in:
2023-05-23 17:26:46 -05:00
parent 8f5a0cab9c
commit 16c3eceffd
2 changed files with 2 additions and 7 deletions

View File

@@ -196,7 +196,7 @@ pub const Gui = struct {
_ = channel.gui.pop();
channel.emu.push(.Resume);
SDL.SDL_PauseAudioDevice(self.audio.device, 0);
if (!config.config().host.mute) SDL.SDL_PauseAudioDevice(self.audio.device, 0);
self.state.emulation = .Active;
},
@@ -310,11 +310,6 @@ const Audio = struct {
const device = SDL.SDL_OpenAudioDevice(null, 0, &want, &have, 0);
if (device == 0) panic();
if (!config.config().host.mute) {
SDL.SDL_PauseAudioDevice(device, 0); // Unpause Audio
log.info("Unpaused Device", .{});
}
return .{ .device = device };
}