diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-10 04:58:38 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-04-10 04:58:38 +0300 |
commit | cd09e3835c59ffdaeec9666d0ee0cddea98772bf (patch) | |
tree | dba1ca4efeafe2389fdcca3fd1a88b8fad0c7ed9 | |
parent | 6bfdcc294e43614182200743dcac0e9b97311eaf (diff) | |
download | libADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.tar.gz libADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.tar.bz2 libADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.zip |
When muting channel, set zero to releasing time out to free the channel
-rw-r--r-- | src/adlmidi_midiplay.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index b053f01..901e6ea 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1513,9 +1513,12 @@ void MIDIplay::NoteUpdate(uint16_t MidCh, { opl.NoteOff(c); if(props_mask & Upd_Mute) // Mute the note + { opl.Touch_Real(c, 0); - ch[c].koff_time_until_neglible = - ains.ms_sound_koff; + ch[c].koff_time_until_neglible = 0; + } else { + ch[c].koff_time_until_neglible = ains.ms_sound_koff; + } } } else |