aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_midiplay.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2023-05-28 21:20:29 +0300
committerWohlstand <admin@wohlnet.ru>2023-05-28 21:20:29 +0300
commitd7ad5f2dbbc5be187ffa57d7729ad50fb256ec14 (patch)
tree4abe86c5fbf4f4cc8b359417dabc7d279ca1fd94 /src/adlmidi_midiplay.cpp
parenta851cf5c07a73d067960262339b27a359621f82b (diff)
downloadlibADLMIDI-d7ad5f2dbbc5be187ffa57d7729ad50fb256ec14.tar.gz
libADLMIDI-d7ad5f2dbbc5be187ffa57d7729ad50fb256ec14.tar.bz2
libADLMIDI-d7ad5f2dbbc5be187ffa57d7729ad50fb256ec14.zip
Fixed accuracy of HMI-OLD volume model
Make HMI-OLD volume model also use "Any-Released" channel allocation as the normal "HMI".
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 442d963..a8e545b 100644
--- a/src/adlmidi_midiplay.cpp
+++ b/src/adlmidi_midiplay.cpp
@@ -1355,7 +1355,7 @@ int64_t MIDIplay::calculateChipChannelGoodness(size_t c, const MIDIchannel::Note
{
if(synth.m_musicMode == Synth::MODE_CMF)
allocType = ADLMIDI_ChanAlloc_SameInst;
- else if(synth.m_volumeScale == Synth::VOLUME_HMI)
+ else if(synth.m_volumeScale == Synth::VOLUME_HMI || synth.m_volumeScale == Synth::VOLUME_HMI_OLD)
allocType = ADLMIDI_ChanAlloc_AnyReleased; // HMI doesn't care about the same instrument
else
allocType = ADLMIDI_ChanAlloc_OffDelay;