Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::RawMidiParser Class Reference

#include <raw_midi_parser.h>

Public Member Functions

 RawMidiParser ()
 
void reset ()
 
uint8_t const * midi_buffer () const
 
size_t buffer_size () const
 
bool process_byte (const uint8_t byte)
 

Private Member Functions

void record_byte (uint8_t byte)
 
void prepare_byte_event (const uint8_t byte)
 
bool prepare_buffered_event ()
 

Private Attributes

size_t _event_size
 
size_t _unbuffered_bytes
 
size_t _total_bytes
 
size_t _expected_bytes
 
uint8_t _status_byte
 
uint8_t _parser_buffer [1024]
 

Detailed Description

Definition at line 27 of file raw_midi_parser.h.

Constructor & Destructor Documentation

◆ RawMidiParser()

ARDOUR::RawMidiParser::RawMidiParser ( )

Member Function Documentation

◆ buffer_size()

size_t ARDOUR::RawMidiParser::buffer_size ( ) const
inline

Definition at line 41 of file raw_midi_parser.h.

◆ midi_buffer()

uint8_t const* ARDOUR::RawMidiParser::midi_buffer ( ) const
inline

Definition at line 40 of file raw_midi_parser.h.

◆ prepare_buffered_event()

bool ARDOUR::RawMidiParser::prepare_buffered_event ( )
inlineprivate

Definition at line 64 of file raw_midi_parser.h.

◆ prepare_byte_event()

void ARDOUR::RawMidiParser::prepare_byte_event ( const uint8_t  byte)
inlineprivate

Definition at line 59 of file raw_midi_parser.h.

◆ process_byte()

bool ARDOUR::RawMidiParser::process_byte ( const uint8_t  byte)

parse a MIDI byte

Returns
true if message is complete, false if more data is needed

◆ record_byte()

void ARDOUR::RawMidiParser::record_byte ( uint8_t  byte)
inlineprivate

Definition at line 50 of file raw_midi_parser.h.

◆ reset()

void ARDOUR::RawMidiParser::reset ( )
inline

Definition at line 32 of file raw_midi_parser.h.

Member Data Documentation

◆ _event_size

size_t ARDOUR::RawMidiParser::_event_size
private

Definition at line 78 of file raw_midi_parser.h.

◆ _expected_bytes

size_t ARDOUR::RawMidiParser::_expected_bytes
private

Definition at line 81 of file raw_midi_parser.h.

◆ _parser_buffer

uint8_t ARDOUR::RawMidiParser::_parser_buffer[1024]
private

Definition at line 83 of file raw_midi_parser.h.

◆ _status_byte

uint8_t ARDOUR::RawMidiParser::_status_byte
private

Definition at line 82 of file raw_midi_parser.h.

◆ _total_bytes

size_t ARDOUR::RawMidiParser::_total_bytes
private

Definition at line 80 of file raw_midi_parser.h.

◆ _unbuffered_bytes

size_t ARDOUR::RawMidiParser::_unbuffered_bytes
private

Definition at line 79 of file raw_midi_parser.h.


The documentation for this class was generated from the following file: