From a5ff904b33f93f848270eef1f05101903a6f0f0e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 28 Apr 2020 20:30:16 +1000 Subject: [PATCH] SPU: Clear ENDX flag on key on --- src/core/spu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index 7e21a88c1..c74369154 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -697,7 +697,10 @@ void SPU::Execute(TickCount ticks) key_off_register >>= 1; if (key_on_register & 1u) + { + m_endx_register &= ~(1u << voice); m_voices[voice].KeyOn(); + } key_on_register >>= 1; }