GB Audio: Fix channels 1/2 staying muted if restarted after long silence

This commit is contained in:
Vicki Pfau 2023-04-28 19:35:03 -07:00
parent 5a94780871
commit 5f762e68b8
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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;