Key off the envelope when the VAG/etc. ends.

Fixes Yu-Gi-Oh Tag Force GX 3 hanging in some places.
This commit is contained in:
Unknown W. Brackets 2014-01-13 21:42:42 -08:00
parent 66e88dd39f
commit 4102e649d5

View File

@ -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;