GB Audio: Fix channel 4 initial LFSR

This commit is contained in:
Vicki Pfau 2018-09-21 14:15:27 -07:00
parent 9703210938
commit f99bdc07de
2 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ Bugfixes:
- GB Serialize: Fix IRQ pending/EI pending confusion
- GB MBC: Improve multicart detection heuristic (fixes mgba.io/i/1177)
- GB Audio: Fix channel 3 reset value
- GB Audio: Fix channel 4 initial LFSR
Misc:
- GBA Timer: Use global cycles for timers
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)

View File

@ -377,9 +377,9 @@ void GBAudioWriteNR44(struct GBAudio* audio, uint8_t value) {
audio->playingCh4 = _resetEnvelope(&audio->ch4.envelope);
if (audio->ch4.power) {
audio->ch4.lfsr = 0x40;
audio->ch4.lfsr = 0x7F;
} else {
audio->ch4.lfsr = 0x4000;
audio->ch4.lfsr = 0x7FFF;
}
if (!audio->ch4.length) {
audio->ch4.length = 64;