mirror of https://github.com/mgba-emu/mgba.git
GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers
This commit is contained in:
parent
d07b4a4a7b
commit
57bdbcd91e
1
CHANGES
1
CHANGES
|
@ -8,6 +8,7 @@ Bugfixes:
|
||||||
- GBA: Deinit savegame when unloading a ROM
|
- GBA: Deinit savegame when unloading a ROM
|
||||||
- GBA: Fix BIOS check on big endian
|
- GBA: Fix BIOS check on big endian
|
||||||
- Libretro: Fix a memory leak with the render buffer
|
- Libretro: Fix a memory leak with the render buffer
|
||||||
|
- GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Window size command line options are now supported
|
- Qt: Window size command line options are now supported
|
||||||
- Qt: Increase usability of key mapper
|
- Qt: Increase usability of key mapper
|
||||||
|
|
|
@ -328,7 +328,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
break;
|
break;
|
||||||
case REG_SOUND3CNT_HI:
|
case REG_SOUND3CNT_HI:
|
||||||
GBAAudioWriteSOUND3CNT_HI(&gba->audio, value);
|
GBAAudioWriteSOUND3CNT_HI(&gba->audio, value);
|
||||||
value &= 0xE000;
|
value &= 0xE03F;
|
||||||
break;
|
break;
|
||||||
case REG_SOUND3CNT_X:
|
case REG_SOUND3CNT_X:
|
||||||
GBAAudioWriteSOUND3CNT_X(&gba->audio, value);
|
GBAAudioWriteSOUND3CNT_X(&gba->audio, value);
|
||||||
|
@ -337,7 +337,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
break;
|
break;
|
||||||
case REG_SOUND4CNT_LO:
|
case REG_SOUND4CNT_LO:
|
||||||
GBAAudioWriteSOUND4CNT_LO(&gba->audio, value);
|
GBAAudioWriteSOUND4CNT_LO(&gba->audio, value);
|
||||||
value &= 0xFF00;
|
value &= 0xFF3F;
|
||||||
break;
|
break;
|
||||||
case REG_SOUND4CNT_HI:
|
case REG_SOUND4CNT_HI:
|
||||||
GBAAudioWriteSOUND4CNT_HI(&gba->audio, value);
|
GBAAudioWriteSOUND4CNT_HI(&gba->audio, value);
|
||||||
|
|
Loading…
Reference in New Issue