diff --git a/plugins/spu2ghz/mixer.cpp b/plugins/spu2ghz/mixer.cpp index 9623a3cb99..7f69fe0c83 100644 --- a/plugins/spu2ghz/mixer.cpp +++ b/plugins/spu2ghz/mixer.cpp @@ -394,7 +394,7 @@ static void __forceinline CalculateADSR( V_Voice& vc ) { env.Value -= PsxRates[(env.Sr^0x7f)-0xf+32]; } - if( env.Value < 0 ) + if( env.Value <= 0 ) { env.Value = 0; env.Phase++; @@ -447,7 +447,7 @@ static void __forceinline CalculateADSR( V_Voice& vc ) env.Value-=PsxRates[((env.Rr^0x1f)<<2)-0xc+32]; } - if( env.Value < 0 ) + if( env.Value <= 0 ) { env.Value=0; env.Phase++;