18 #ifndef MT32EMU_MIDI_STREAM_PARSER_H 19 #define MT32EMU_MIDI_STREAM_PARSER_H 32 virtual void handleShortMessage(
const Bit32u message) = 0;
35 virtual void handleSysex(
const Bit8u stream[],
const Bit32u length) = 0;
38 virtual void handleSystemRealtimeMessage(
const Bit8u realtime) = 0;
48 virtual void printDebug(
const char *debugMessage) = 0;
70 void parseStream(
const Bit8u *stream, Bit32u length);
74 void processShortMessage(
const Bit32u message);
79 Bit32u streamBufferCapacity;
80 Bit32u streamBufferSize;
87 bool checkStreamBufferCapacity(
const bool preserveContent);
88 bool processStatusByte(Bit8u &status);
89 Bit32u parseShortMessageStatus(
const Bit8u stream[]);
90 Bit32u parseShortMessageDataBytes(
const Bit8u stream[], Bit32u length);
91 Bit32u parseSysex(
const Bit8u stream[],
const Bit32u length);
92 Bit32u parseSysexFragment(
const Bit8u stream[],
const Bit32u length);
101 explicit MidiStreamParser(Bit32u initialStreamBufferCapacity = SYSEX_BUFFER_SIZE);
107 void setTimestamp(
const Bit32u useTimestamp);
108 void resetTimestamp();
111 void handleShortMessage(
const Bit32u message);
112 void handleSysex(
const Bit8u *stream,
const Bit32u length);
113 void handleSystemRealtimeMessage(
const Bit8u realtime);
114 void printDebug(
const char *debugMessage);
124 #endif // MT32EMU_MIDI_STREAM_PARSER_H Definition: MidiStreamParser.h:45
Definition: MidiStreamParser.h:58
Definition: MidiStreamParser.h:96
Definition: MidiStreamParser.h:29
Definition: MidiStreamParser.h:104