19 #ifndef _ardour_raw_midi_parser_h_
20 #define _ardour_raw_midi_parser_h_
34 _unbuffered_bytes = 0;
40 uint8_t
const *
midi_buffer ()
const {
return _parser_buffer; }
51 if (_total_bytes <
sizeof (_parser_buffer)) {
52 _parser_buffer[_total_bytes] =
byte;
60 _parser_buffer[0] =
byte;
65 const bool result = _unbuffered_bytes == 0;
67 _event_size = _total_bytes;
70 _unbuffered_bytes = 0;
71 if (_status_byte >= 0xf0) {
83 uint8_t _parser_buffer[1024];
size_t buffer_size() const
void record_byte(uint8_t byte)
void prepare_byte_event(const uint8_t byte)
bool process_byte(const uint8_t byte)
bool prepare_buffered_event()
uint8_t const * midi_buffer() const