aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_midiplay.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-04-10 04:58:38 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-04-10 04:58:38 +0300
commitcd09e3835c59ffdaeec9666d0ee0cddea98772bf (patch)
treedba1ca4efeafe2389fdcca3fd1a88b8fad0c7ed9 /src/adlmidi_midiplay.cpp
parent6bfdcc294e43614182200743dcac0e9b97311eaf (diff)
downloadlibADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.tar.gz
libADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.tar.bz2
libADLMIDI-cd09e3835c59ffdaeec9666d0ee0cddea98772bf.zip
When muting channel, set zero to releasing time out to free the channel
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r--src/adlmidi_midiplay.cpp7
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