SPU: Reset ADPCM decoder last samples on key on

This commit is contained in:
Connor McLaughlin 2020-05-18 00:50:55 +10:00
parent f2e6b8d72b
commit 03080351c8

View file

@ -1052,6 +1052,7 @@ void SPU::Voice::KeyOn()
{ {
current_address = regs.adpcm_start_address & ~u16(1); current_address = regs.adpcm_start_address & ~u16(1);
regs.adsr_volume = 0; regs.adsr_volume = 0;
adpcm_last_samples.fill(0);
has_samples = false; has_samples = false;
ignore_loop_address = false; ignore_loop_address = false;
SetADSRPhase(ADSRPhase::Attack); SetADSRPhase(ADSRPhase::Attack);