Classes | Public Member Functions | Public Attributes | List of all members
universal_midi_packets::BytestreamToBytestreamHandler Struct Reference

Parses a continuous bytestream and emits complete MidiMessages whenever a full message is received. More...

Inheritance diagram for universal_midi_packets::BytestreamToBytestreamHandler:

Classes

class  Factory
 Provides an operator() which can create an input handler for a given MidiInput. More...
 

Public Member Functions

 BytestreamToBytestreamHandler (MidiInput &i, MidiInputCallback &c)
 
void reset () override
 
void pushMidiData (const void *data, int bytes, double time) override
 
- Public Member Functions inherited from universal_midi_packets::BytestreamInputHandler
virtual ~BytestreamInputHandler () noexcept=default
 

Public Attributes

MidiInputinput
 
MidiInputCallbackcallback
 
MidiDataConcatenator concatenator
 

Detailed Description

Parses a continuous bytestream and emits complete MidiMessages whenever a full message is received.

Constructor & Destructor Documentation

◆ BytestreamToBytestreamHandler()

universal_midi_packets::BytestreamToBytestreamHandler::BytestreamToBytestreamHandler ( MidiInput i,
MidiInputCallback c 
)

Member Function Documentation

◆ reset()

void universal_midi_packets::BytestreamToBytestreamHandler::reset ( )
overridevirtual

◆ pushMidiData()

void universal_midi_packets::BytestreamToBytestreamHandler::pushMidiData ( const void *  data,
int  bytes,
double  time 
)
overridevirtual

Member Data Documentation

◆ input

MidiInput& universal_midi_packets::BytestreamToBytestreamHandler::input

◆ callback

MidiInputCallback& universal_midi_packets::BytestreamToBytestreamHandler::callback

◆ concatenator

MidiDataConcatenator universal_midi_packets::BytestreamToBytestreamHandler::concatenator

Referenced by reset().


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