From 2399c1dab7a08eee26b60335770242161102fda7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 16 Nov 2019 01:43:34 +1000 Subject: [PATCH] SPU: Fix incorrect step value in attack phase --- src/core/spu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index 9fd696d96..385f7eebe 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -669,7 +669,7 @@ void SPU::Voice::SetADSRPhase(ADSRPhase phase) case ADSRPhase::Attack: adsr_target.level = 32767; // 0 -> max - adsr_target.step = regs.adsr.attack_step + 4; + adsr_target.step = regs.adsr.attack_step; adsr_target.shift = regs.adsr.attack_shift; adsr_target.decreasing = false; adsr_target.exponential = regs.adsr.attack_exponential;