mirror of https://github.com/bsnes-emu/bsnes.git
Fixed silly APU regression (Noise volume envelope ran too fast) Fixes #121
This commit is contained in:
parent
96e9ea2d1e
commit
a39b314378
|
@ -274,7 +274,7 @@ void GB_apu_div_event(GB_gameboy_t *gb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gb->apu.is_active[GB_NOISE] && gb->apu.noise_channel.volume_countdown && (gb->io_registers[GB_IO_NR42] & 7)) {
|
if (gb->apu.is_active[GB_NOISE] && gb->apu.noise_channel.volume_countdown == 0 && (gb->io_registers[GB_IO_NR42] & 7)) {
|
||||||
tick_noise_envelope(gb);
|
tick_noise_envelope(gb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue