GBHawk: fix mickey's chase damage audio

This commit is contained in:
alyosha-tas 2020-05-28 09:20:04 -04:00
parent 22a2bb7dc8
commit bee1712a2f
1 changed files with 2 additions and 0 deletions

View File

@ -452,6 +452,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
NOISE_clk_shft = (byte)((value & 0xF0) >> 4);
NOISE_wdth_md = (value & 8) > 0;
NOISE_div_code = (byte)(value & 7);
// Mickey's Dangerous Chase requires writes here to take effect immediately (for sound of taking damage)
NOISE_intl_cntr = (DIVISOR[NOISE_div_code] << NOISE_clk_shft);
break;
case 0xFF23: // NR44 (trigger)
Audio_Regs[NR44] = value;