diff --git a/CHANGES b/CHANGES index e69859ab5..716aea34b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +0.10.3: (Future) +Emulation fixes: + - GB Audio: Fix channels 1/2 staying muted if restarted after long silence + 0.10.2: (2023-04-23) Emulation fixes: - GBA Audio: Fix improperly deserializing GB audio registers (fixes mgba.io/i/2793) diff --git a/src/gb/audio.c b/src/gb/audio.c index acd57d6d6..9130c8711 100644 --- a/src/gb/audio.c +++ b/src/gb/audio.c @@ -202,6 +202,7 @@ void GBAudioWriteNR14(struct GBAudio* audio, uint8_t value) { --audio->ch1.control.length; } } + audio->ch1.lastUpdate = mTimingCurrentTime(audio->timing); _updateSquareSample(&audio->ch1); } *audio->nr52 &= ~0x0001; @@ -249,6 +250,7 @@ void GBAudioWriteNR24(struct GBAudio* audio, uint8_t value) { --audio->ch2.control.length; } } + audio->ch2.lastUpdate = mTimingCurrentTime(audio->timing); _updateSquareSample(&audio->ch2); } *audio->nr52 &= ~0x0002;