#include <juce_UMPDispatcher.h>
Parses a raw stream of uint32_t, and calls a user-provided callback every time a full Universal MIDI Packet is encountered.
@tags{Audio}
◆ dispatch()
template<typename PacketCallbackFunction>
| void juce::universal_midi_packets::Dispatcher::dispatch |
( |
const uint32_t * | begin, |
|
|
const uint32_t * | end, |
|
|
double | timeStamp, |
|
|
PacketCallbackFunction && | callback ) |
|
inline |
Calls callback with a View of each packet encountered in the range delimited by begin and end.
If the range ends part-way through a packet, the next call to dispatch will continue from that point in the packet (unless reset is called first).
◆ reset()
| void juce::universal_midi_packets::Dispatcher::reset |
( |
| ) |
|
|
inline |
◆ currentPacketLen
| size_t juce::universal_midi_packets::Dispatcher::currentPacketLen = 0 |
|
private |
◆ nextPacket
| std::array<uint32_t, 4> juce::universal_midi_packets::Dispatcher::nextPacket |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_audio_basics/midi/ump/juce_UMPDispatcher.h