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 (const 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) |
Private Attributes | |
| int | pendingBytes |
| MemoryBlock | pendingData |
| double | pendingDataTime |
| uint8 | runningStatus |
Helper class that takes chunks of incoming midi bytes, packages them into messages, and dispatches them to a midi callback.
|
inline |
|
inlineprivate |
References MemoryBlock::ensureSize(), MemoryBlock::getData(), pendingBytes, pendingData, and pendingDataTime.
Referenced by pushMidiData().
|
inline |
References MidiMessage::getMessageLengthFromFirstByte(), jassert, pendingBytes, processSysex(), and runningStatus.
|
inline |
References pendingBytes, pendingDataTime, and runningStatus.
|
private |
Referenced by processSysex(), pushMidiData(), and reset().
|
private |
Referenced by processSysex().
|
private |
Referenced by processSysex(), and reset().
|
private |
Referenced by pushMidiData(), and reset().