Holds a set of VSTMidiEvent objects and makes it easy to add events to the list.
This is used by both the VST hosting code and the plugin wrapper.
Public Member Functions | |
VSTMidiEventList () | |
~VSTMidiEventList () | |
void | clear () |
void | addEvent (const void *const midiData, int numBytes, int frameOffset) |
void | ensureSize (int numEventsNeeded) |
void | freeEvents () |
Static Public Member Functions | |
static void | addEventsToMidiBuffer (const Vst2::VstEvents *events, MidiBuffer &dest) |
Public Attributes | |
HeapBlock< Vst2::VstEvents > | events |
juce::VSTMidiEventList::VSTMidiEventList | ( | ) |
juce::VSTMidiEventList::~VSTMidiEventList | ( | ) |
References freeEvents().
void juce::VSTMidiEventList::clear | ( | ) |
References events.
void juce::VSTMidiEventList::addEvent | ( | const void *const | midiData, |
int | numBytes, | ||
int | frameOffset ) |
References ensureSize(), and events.
|
static |
References juce::MidiBuffer::addEvent(), and events.
void juce::VSTMidiEventList::ensureSize | ( | int | numEventsNeeded | ) |
References events.
Referenced by addEvent().
void juce::VSTMidiEventList::freeEvents | ( | ) |
References events.
Referenced by ~VSTMidiEventList().
HeapBlock<Vst2::VstEvents> juce::VSTMidiEventList::events |
Referenced by addEvent(), addEventsToMidiBuffer(), clear(), ensureSize(), and freeEvents().