From 05c28164f342656bd02bb4c6607b938bb8d3f2b1 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 26 Sep 2011 10:34:52 -0700 Subject: [PATCH] Fix another bug with stuck notes. When multiple MIDI messages were received in a single buffer, the code was neglecting to advance the string pointer it was using to parse. This was causing it to parse the first message several times and ignore all following messages. Fix this silly bug. --- scherzo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scherzo.c b/scherzo.c index 955f5b7..88cae44 100644 --- a/scherzo.c +++ b/scherzo.c @@ -369,6 +369,7 @@ on_midi_input (unused (GIOChannel *channel), next, remaining, &event); remaining -= consumed; + next += consumed; switch (event.type) { case SND_SEQ_EVENT_NONE: -- 2.43.0