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 75910bcdab
commit 65a0b63c82
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Features:
- New unlicensed GB mappers: NT (older types 1 and 2), Li Cheng, GGB-81
- Debugger: Add range watchpoints
Emulation fixes:
- GB Audio: Fix channels 1/2 staying muted if restarted after long silence
- GB Serialize: Add missing Pocket Cam state to savestates
- GB Video: Implement DMG-style sprite ordering
- GBA Video: Disable BG target 1 blending when OBJ blending (fixes mgba.io/i/2722)

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;