mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix channels 1/2 staying muted if restarted after long silence
This commit is contained in:
parent
75910bcdab
commit
65a0b63c82
1
CHANGES
1
CHANGES
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue