From 5b2bd0b6b6a637554af994c286e0aaac7a74e935 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 10 Nov 2025 21:15:41 -0600 Subject: [PATCH] chore: disable issues w/ audio to have otherwise working emu --- src/core/apu.zig | 2 +- src/platform.zig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/apu.zig b/src/core/apu.zig index 79bf98a..c0cae37 100644 --- a/src/core/apu.zig +++ b/src/core/apu.zig @@ -468,7 +468,7 @@ pub const Apu = struct { @branchHint(.cold); _ = self; - @panic("TODO: Implement Multiple Sample Rates..."); + // @panic("TODO: Implement Multiple Sample Rates..."); // const sample_rate = Self.sampleRate(self.bias.sampling_cycle.read()); // log.info("Sample Rate changed from {}Hz to {}Hz", .{ Self.sampleRate(self.sampling_cycle), sample_rate }); diff --git a/src/platform.zig b/src/platform.zig index 4836ee7..738fbe0 100644 --- a/src/platform.zig +++ b/src/platform.zig @@ -203,13 +203,13 @@ pub const Gui = struct { .Transition => |inner| switch (inner) { .Active => { sync.paused.store(false, .monotonic); - if (!config.config().host.mute) try errify(c.SDL_PauseAudioDevice(c.SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)); + // if (!config.config().host.mute) try errify(c.SDL_PauseAudioDevice(c.SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)); self.state.emulation = .Active; }, .Inactive => { // Assert that double pausing is impossible - try errify(c.SDL_ResumeAudioDevice(c.SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)); + // try errify(c.SDL_ResumeAudioDevice(c.SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK)); sync.paused.store(true, .monotonic); self.state.emulation = .Inactive;