From 472683e96b763232e2d99626ac60c19ec84f1225 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Thu, 25 Feb 2021 20:07:09 +0100 Subject: we need a while loop for reading the MIDI messages --- drumgizmo/input/alsamidi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3