[Bug 115] libmidi does not support "running status"

[email protected] Sat, 26 Mar 2005 16:58:23 +0100 (CET)
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
https://bugs.gephex.org/show_bug.cgi?id=115

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From [email protected]  2005-03-26 16:58 -------
Looking at the code, running status is supported, but only inside of one midi buffer.
The parser does not keep state between calls of midi_parse_data.
This is OK, since incomplete midi messages are signalled to the caller with
the return value (number of parsed bytes).
If the number of parsed bytes is less than the buffer len, the caller knows that there
is an incomplete midi message at the end of the buffer. This can be put before
the next data block given to midi_parse_data.

However, the parser must remember the running status byte (if any) across calls.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.