From: Carl Worth Date: Mon, 26 Sep 2011 17:34:52 +0000 (-0700) Subject: Fix another bug with stuck notes. X-Git-Url: https://git.cworth.org/git?p=scherzo;a=commitdiff_plain;h=05c28164f342656bd02bb4c6607b938bb8d3f2b1;ds=sidebyside 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. --- 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: