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
5a94780871
commit
5f762e68b8
4
CHANGES
4
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)
|
||||
|
|
|
@ -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