From 03080351c831836f4f112b538fd377075e568af0 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 18 May 2020 00:50:55 +1000 Subject: [PATCH] SPU: Reset ADPCM decoder last samples on key on --- src/core/spu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index e1cfc05e1..7f4a76bee 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -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);