aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_midiplay.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-08 10:52:13 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-08 10:52:13 +0300
commitd36e046fe69e40791f6291246722621beaa5174e (patch)
treebd5303992aee08dfac466e52e03300fd9720668f /src/adlmidi_midiplay.cpp
parentaafcec29dbd743c7cc3544ca100ebd14c422c1ef (diff)
downloadlibADLMIDI-d36e046fe69e40791f6291246722621beaa5174e.tar.gz
libADLMIDI-d36e046fe69e40791f6291246722621beaa5174e.tar.bz2
libADLMIDI-d36e046fe69e40791f6291246722621beaa5174e.zip
Whoops
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r--src/adlmidi_midiplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp
index 09a4c15..6f1012f 100644
--- a/src/adlmidi_midiplay.cpp
+++ b/src/adlmidi_midiplay.cpp
@@ -1368,7 +1368,7 @@ int64_t MIDIplay::calculateChipChannelGoodness(size_t c, const MIDIchannel::Note
s = 0; // Re-use releasing channel with the same instrument
else if(synth.m_volumeScale == Synth::VOLUME_HMI)
s = 0; // HMI doesn't care about the same instrument
- else
+ else if(chan.recent_ins == ins)
s = -koff_ms; // Wait until releasing sound will complete
return s;
}