Fixed a bug where audio channel 3 was playing silently instead of being muted.
This commit is contained in:
parent
ddc9605271
commit
7dc575d01e
@ -361,6 +361,9 @@ void apu_write(GB_gameboy_t *gb, unsigned char reg, unsigned char value)
|
|||||||
break;
|
break;
|
||||||
case GB_IO_NR32:
|
case GB_IO_NR32:
|
||||||
gb->apu.wave_shift = ((value >> 5) + 3) & 3;
|
gb->apu.wave_shift = ((value >> 5) + 3) & 3;
|
||||||
|
if (gb->apu.wave_shift == 3) {
|
||||||
|
gb->apu.wave_shift = 4;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case GB_IO_NR43:
|
case GB_IO_NR43:
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,6 @@ enum {
|
|||||||
GB_IO_NR31 = 0x1b, // Channel 3 Sound Length
|
GB_IO_NR31 = 0x1b, // Channel 3 Sound Length
|
||||||
GB_IO_NR32 = 0x1c, // Channel 3 Select output level (R/W)
|
GB_IO_NR32 = 0x1c, // Channel 3 Select output level (R/W)
|
||||||
GB_IO_NR33 = 0x1d, // Channel 3 Frequency's lower data (W)
|
GB_IO_NR33 = 0x1d, // Channel 3 Frequency's lower data (W)
|
||||||
|
|
||||||
GB_IO_NR34 = 0x1e, // Channel 3 Frequency's higher data (R/W)
|
GB_IO_NR34 = 0x1e, // Channel 3 Frequency's higher data (R/W)
|
||||||
|
|
||||||
/* Missing */
|
/* Missing */
|
||||||
|
Loading…
Reference in New Issue
Block a user