summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-04-25 20:26:22 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-04-25 20:26:54 +0200
commit751f01eea8c40f70d412e691e6677d3daae54c7a (patch)
treea21dbd9c84d241f34733eb9e56076d00bfa56795 /src
parentf5890ca723139636cc7c64d79f46e30780f59a25 (diff)
Do not discard midi messages bigger than 3 bytes.
Diffstat (limited to 'src')
-rw-r--r--src/audioinputenginemidi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioinputenginemidi.cc b/src/audioinputenginemidi.cc
index 7b8cbcb..abe00ff 100644
--- a/src/audioinputenginemidi.cc
+++ b/src/audioinputenginemidi.cc
@@ -109,7 +109,7 @@ void AudioInputEngineMidi::processNote(const std::uint8_t* midi_buffer,
std::size_t offset,
std::vector<event_t>& events)
{
- if(midi_buffer_length != 3)
+ if(midi_buffer_length < 3)
{
return;
}