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
1 changed files with 1 additions and 0 deletions

View File

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