mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix channel 4 initial LFSR
This commit is contained in:
parent
9703210938
commit
f99bdc07de
1
CHANGES
1
CHANGES
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue