aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2017-12-10 00:24:02 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2017-12-10 00:24:02 +0300
commit51d6e05b7e7bc6fad529e9e023ceca9af34ed910 (patch)
tree2074bd760ff007b4b9db28c7f1f7151d395030fe /src
parentb5be0ef0b188ab5afeef825d80a0b00bfff30023 (diff)
parent4ab6c7b2d81960b124974ddca5733a07c8dd5fc8 (diff)
downloadlibADLMIDI-51d6e05b7e7bc6fad529e9e023ceca9af34ed910.tar.gz
libADLMIDI-51d6e05b7e7bc6fad529e9e023ceca9af34ed910.tar.bz2
libADLMIDI-51d6e05b7e7bc6fad529e9e023ceca9af34ed910.zip
Merge branch 'master' into get-rid-of-backup-buffer
# Conflicts: # src/adlmidi.cpp
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi_midiplay.cpp3
-rw-r--r--src/adlmidi_private.hpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp
index 69db6b0..dacb2b1 100644
--- a/src/adlmidi_midiplay.cpp
+++ b/src/adlmidi_midiplay.cpp
@@ -241,7 +241,6 @@ void MIDIplay::MidiTrackRow::sortEvents(bool *noteStates)
for(std::set<size_t>::iterator j = markAsOn.begin(); j != markAsOn.end(); j++)
noteStates[*j] = true;
-
}
/***********************************************************************************/
@@ -2056,7 +2055,7 @@ void MIDIplay::HandleEvent(size_t tk, const MIDIplay::MidiEvent &evt, int &statu
}
}
-long MIDIplay::CalculateAdlChannelGoodness(unsigned c, const MIDIchannel::NoteInfo::Phys &ins, uint16_t)
+long MIDIplay::CalculateAdlChannelGoodness(unsigned c, const MIDIchannel::NoteInfo::Phys &ins, uint16_t) const
{
long s = -ch[c].koff_time_until_neglible;
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index 2442fc2..46187bc 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -934,7 +934,7 @@ private:
// Determine how good a candidate this adlchannel
// would be for playing a note from this instrument.
- long CalculateAdlChannelGoodness(unsigned c, const MIDIchannel::NoteInfo::Phys &ins, uint16_t /*MidCh*/);
+ long CalculateAdlChannelGoodness(unsigned c, const MIDIchannel::NoteInfo::Phys &ins, uint16_t /*MidCh*/) const;
// A new note will be played on this channel using this instrument.
// Kill existing notes on this channel (or don't, if we do arpeggio)