Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback. More...
#include <juce_MidiDataConcatenator.h>
Public Member Functions | |
MidiDataConcatenator (int initialBufferSize) | |
template<typename UserDataType , typename CallbackType > | |
void | pushMidiData (const void *inputData, int numBytes, double time, UserDataType *input, CallbackType &callback) |
void | reset () |
Private Member Functions | |
template<typename UserDataType , typename CallbackType > | |
void | processSysex (const uint8 *&d, int &numBytes, double time, UserDataType *input, CallbackType &callback) |
Static Private Member Functions | |
static bool | isInitialByte (uint8 byte) |
static bool | isRealtimeMessage (uint8 byte) |
Private Attributes | |
uint8 | currentMessage [3] |
int | currentMessageLen = 0 |
MemoryBlock | pendingSysexData |
int | pendingSysexSize = 0 |
double | pendingSysexTime = 0 |
Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback.
{Audio}
|
inline |
Referenced by processSysex(), and pushMidiData().
Referenced by pushMidiData().
|
inlineprivate |
References juce::MemoryBlock::ensureSize(), juce::MemoryBlock::getData(), isInitialByte(), pendingSysexData, pendingSysexSize, and pendingSysexTime.
Referenced by pushMidiData().
|
inline |
|
inline |
References currentMessageLen, pendingSysexSize, and pendingSysexTime.
|
private |
Referenced by pushMidiData().
|
private |
Referenced by pushMidiData(), and reset().
|
private |
Referenced by processSysex().
|
private |
Referenced by processSysex(), pushMidiData(), and reset().
|
private |
Referenced by processSysex(), and reset().