chore: disable issues w/ audio to have otherwise working emu

This commit is contained in:
2025-11-10 21:15:41 -06:00
parent 10308e2dd0
commit 5b2bd0b6b6
2 changed files with 3 additions and 3 deletions

View File

@@ -468,7 +468,7 @@ pub const Apu = struct {
@branchHint(.cold); @branchHint(.cold);
_ = self; _ = self;
@panic("TODO: Implement Multiple Sample Rates..."); // @panic("TODO: Implement Multiple Sample Rates...");
// const sample_rate = Self.sampleRate(self.bias.sampling_cycle.read()); // 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 }); // log.info("Sample Rate changed from {}Hz to {}Hz", .{ Self.sampleRate(self.sampling_cycle), sample_rate });

View File

@@ -203,13 +203,13 @@ pub const Gui = struct {
.Transition => |inner| switch (inner) { .Transition => |inner| switch (inner) {
.Active => { .Active => {
sync.paused.store(false, .monotonic); 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; self.state.emulation = .Active;
}, },
.Inactive => { .Inactive => {
// Assert that double pausing is impossible // 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); sync.paused.store(true, .monotonic);
self.state.emulation = .Inactive; self.state.emulation = .Inactive;