aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_midiplay.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-06-24 02:10:25 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-06-24 02:10:25 +0300
commitd519f6816e6dbc27ecfa81d2493ae4f40be7f497 (patch)
tree0bd9b8def52e1c2513020f02a05375c64671058d /src/adlmidi_midiplay.cpp
parentd5b83ac8278668d171d0a4005d728424c2a28482 (diff)
downloadlibADLMIDI-d519f6816e6dbc27ecfa81d2493ae4f40be7f497.tar.gz
libADLMIDI-d519f6816e6dbc27ecfa81d2493ae4f40be7f497.tar.bz2
libADLMIDI-d519f6816e6dbc27ecfa81d2493ae4f40be7f497.zip
Make CMF files sound more correctly
(Especially, Dyna Blaster and Xargon musics are sounding too messy. This fix allows to resolve that)
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 1012b77..190a521 100644
--- a/src/adlmidi_midiplay.cpp
+++ b/src/adlmidi_midiplay.cpp
@@ -1225,7 +1225,7 @@ void MIDIplay::setErrorString(const std::string &err)
int64_t MIDIplay::CalculateAdlChannelGoodness(size_t c, const MIDIchannel::NoteInfo::Phys &ins, uint16_t) const
{
- int64_t s = -ch[c].koff_time_until_neglible;
+ int64_t s = (opl.m_musicMode != OPL3::MODE_CMF) ? -ch[c].koff_time_until_neglible : 0;
// Same midi-instrument = some stability
//if(c == MidCh) s += 4;