mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- Changed Gf1Envelope::Recompute() so that when the envelope runs out in midi_timiditylike
mode, it doesn't immediately kill the note. This doesn't appear to match what TiMidity does, but I think it sounds better to turn the loop off and let the note end naturally instead of abruptly shutting it off. SVN r960 (trunk)
This commit is contained in:
parent
d4563767ee
commit
569fdb7edf
1 changed files with 5 additions and 2 deletions
|
@ -120,8 +120,11 @@ bool GF1Envelope::Recompute(Voice *v)
|
|||
v->status &= ~(VOICE_SUSTAINING | VOICE_LPE);
|
||||
v->status |= VOICE_RELEASING;
|
||||
if (midi_timiditylike)
|
||||
{ /* kill the voice */
|
||||
v->status |= VOICE_STOPPING;
|
||||
{ /* kill the voice ... or not */
|
||||
if (volume <= 0)
|
||||
{
|
||||
v->status |= VOICE_STOPPING;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue