aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-09-26 03:54:31 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-09-26 03:54:31 +0300
commit6a4d5ea439bb5bafb5747d6a7f4d9bb628bfa648 (patch)
tree61b37158b3d7bdb6db0b0fd48b3fa80a3d3564ee /src/adlmidi_private.hpp
parentc478795f8ff5690c21ef6fbcb4e184e37a57a464 (diff)
parent98caeed048a59ae639fe02858e98f35984585aca (diff)
downloadlibADLMIDI-6a4d5ea439bb5bafb5747d6a7f4d9bb628bfa648.tar.gz
libADLMIDI-6a4d5ea439bb5bafb5747d6a7f4d9bb628bfa648.tar.bz2
libADLMIDI-6a4d5ea439bb5bafb5747d6a7f4d9bb628bfa648.zip
Merge branch 'master' into stable
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r--src/adlmidi_private.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index c5b70ee..43986c5 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -880,6 +880,9 @@ public:
//! Time left until sounding will be muted after key off
int64_t koff_time_until_neglible_us;
+ //! Recently passed instrument, improves a goodness of released but busy channel when matching
+ MIDIchannel::NoteInfo::Phys recent_ins;
+
enum { users_max = 128 };
LocationData *users_first, *users_free_cells;
LocationData users_cells[users_max];
@@ -898,6 +901,7 @@ public:
AdlChannel(): koff_time_until_neglible_us(0)
{
users_clear();
+ std::memset(&recent_ins, 0, sizeof(MIDIchannel::NoteInfo::Phys));
}
AdlChannel(const AdlChannel &oth): koff_time_until_neglible_us(oth.koff_time_until_neglible_us)