From cd09e3835c59ffdaeec9666d0ee0cddea98772bf Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Tue, 10 Apr 2018 04:58:38 +0300 Subject: When muting channel, set zero to releasing time out to free the channel --- src/adlmidi_midiplay.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/adlmidi_midiplay.cpp') 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 -- cgit v1.2.3