chore: disable issues w/ audio to have otherwise working emu
This commit is contained in:
@@ -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 });
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user