Holds a set of VSTMidiEvent objects and makes it easy to add events to the list. More...
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 |
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.
VSTMidiEventList::VSTMidiEventList | ( | ) |
VSTMidiEventList::~VSTMidiEventList | ( | ) |
References freeEvents().
void VSTMidiEventList::clear | ( | ) |
References events.
void VSTMidiEventList::addEvent | ( | const void *const | midiData, |
int | numBytes, | ||
int | frameOffset ) |
References ensureSize(), and events.
|
static |
References MidiBuffer::addEvent(), and events.
void VSTMidiEventList::ensureSize | ( | int | numEventsNeeded | ) |
References events.
Referenced by addEvent().
void VSTMidiEventList::freeEvents | ( | ) |
References events.
Referenced by ~VSTMidiEventList().
HeapBlock<Vst2::VstEvents> VSTMidiEventList::events |
Referenced by addEvent(), addEventsToMidiBuffer(), clear(), ensureSize(), and freeEvents().