|
JUCE
|
Holds a set of VSTMidiEvent objects and makes it easy to add events to the list. More...
#include <juce_VSTMidiEventList.h>
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::VstEventBlock *events, MidiBuffer &dest) |
Public Attributes | |
| HeapBlock< Vst2::VstEventBlock > | 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 HeapBlock< ElementType, throwOnFailure >::calloc(), events, and HeapBlock< ElementType, throwOnFailure >::realloc().
Referenced by addEvent().
| void VSTMidiEventList::freeEvents | ( | ) |
References events, and HeapBlock< ElementType, throwOnFailure >::free().
Referenced by ~VSTMidiEventList().
| HeapBlock<Vst2::VstEventBlock> VSTMidiEventList::events |
Referenced by addEvent(), addEventsToMidiBuffer(), clear(), ensureSize(), and freeEvents().