From 4102e649d541250b92347dbbc146d920bf0596d9 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 13 Jan 2014 21:42:42 -0800 Subject: [PATCH] Key off the envelope when the VAG/etc. ends. Fixes Yu-Gi-Oh Tag Force GX 3 hanging in some places. --- Core/HW/SasAudio.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/HW/SasAudio.cpp b/Core/HW/SasAudio.cpp index 880155fe7d..500fe7e8c7 100644 --- a/Core/HW/SasAudio.cpp +++ b/Core/HW/SasAudio.cpp @@ -350,6 +350,7 @@ void SasVoice::ReadSamples(s16 *output, int numSamples) { // NOTICE_LOG(SAS, "Hit end of VAG audio"); playing = false; on = false; // ?? + envelope.KeyOff(); } } break; @@ -378,6 +379,7 @@ void SasVoice::ReadSamples(s16 *output, int numSamples) { // Hit atrac3 voice end playing = false; on = false; // ?? + envelope.KeyOff(); } } break;