summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Fischer <corrados@users.noreply.github.com>2021-02-25 20:07:09 +0100
committerVolker Fischer <corrados@users.noreply.github.com>2021-02-25 20:07:09 +0100
commit472683e96b763232e2d99626ac60c19ec84f1225 (patch)
treec5e072d0c83acb8c5b3f5b03774d796c4467343f
parentfcfaa7affa0ac8afeaf38346226beb30fca09733 (diff)
we need a while loop for reading the MIDI messages
-rw-r--r--drumgizmo/input/alsamidi.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/drumgizmo/input/alsamidi.cc b/drumgizmo/input/alsamidi.cc
index 068ea2b..7281da7 100644
--- a/drumgizmo/input/alsamidi.cc
+++ b/drumgizmo/input/alsamidi.cc
@@ -136,7 +136,7 @@ void AlsaMidiInputEngine::run(size_t pos, size_t len,
{
assert(events.empty());
snd_seq_event_t* ev = NULL;
- if ( snd_seq_event_input(seq_handle, &ev) >= 0 )
+ while(snd_seq_event_input(seq_handle, &ev) >= 0)
{
// TODO Better solution needed: The ALSA MIDI event structure does
// not seem to contain the raw MIDI data, therefore we have to re-create