#include <XMidiEventList.h>
Public Member Functions | |
int | write (ODataSource *dest) |
void | incerementCounter () |
void | decerementCounter () |
XMidiEvent * | findBranchEvent (int index) |
Public Attributes | |
uint16 | chan_mask |
XMidiEvent * | events |
XMidiEvent * | branches |
Private Member Functions | |
int | putVLQ (ODataSource *dest, uint32 value) |
uint32 | convertListToMTrk (ODataSource *dest) |
Static Private Member Functions | |
static void | deleteEventList (XMidiEvent *list) |
Private Attributes | |
int | counter |
Definition at line 28 of file XMidiEventList.h.
uint32 XMidiEventList::convertListToMTrk | ( | ODataSource * | dest | ) | [private] |
Definition at line 109 of file XMidiEventList.cpp.
References XMidiEvent::data, events, XMidiEvent::ex, ODataSource::getPos(), XMidiEvent::next, perr, putVLQ(), ODataSource::skip(), XMidiEvent::status, XMidiEvent::sysex_data, XMidiEvent::time, time, and ODataSource::write1().
Referenced by write().
void XMidiEventList::decerementCounter | ( | ) |
Decrement the counter and delete the event list, if possible.
Definition at line 223 of file XMidiEventList.cpp.
References counter, deleteEventList(), events, and XMidiEvent::Free().
Referenced by XMidiSequence::~XMidiSequence().
void XMidiEventList::deleteEventList | ( | XMidiEvent * | list | ) | [static, private] |
Definition at line 231 of file XMidiEventList.cpp.
References XMidiEvent::ex, XMidiEvent::Free(), XMidiEvent::next, XMidiEvent::status, and XMidiEvent::sysex_data.
Referenced by decerementCounter().
XMidiEvent* XMidiEventList::findBranchEvent | ( | int | index | ) | [inline] |
Find the Sequence Branch Event for the index
index | The index to search for |
Definition at line 57 of file XMidiEventList.h.
References XMidiEvent::branch_index, branches, XMidiEvent::data, and XMidiEvent::ex.
Referenced by XMidiSequence::playEvent(), MusicProcess::run(), and XMidiSequence::XMidiSequence().
void XMidiEventList::incerementCounter | ( | ) | [inline] |
Increments the counter.
Definition at line 49 of file XMidiEventList.h.
References counter.
Referenced by LowLevelMidiDriver::startSequence().
int XMidiEventList::putVLQ | ( | ODataSource * | dest, | |
uint32 | value | |||
) | [private] |
Definition at line 85 of file XMidiEventList.cpp.
References ODataSource::write1().
Referenced by convertListToMTrk().
int XMidiEventList::write | ( | ODataSource * | dest | ) |
Write the list to a DataSource.
Definition at line 46 of file XMidiEventList.cpp.
References convertListToMTrk(), events, perr, ODataSource::write1(), ODataSource::write2high(), and ODataSource::write4high().
XMidiFile Seq Branch Index controllers. For Ult126 = loop start.
Definition at line 43 of file XMidiEventList.h.
Referenced by XMidiFile::ExtractTracksFromMid(), XMidiFile::ExtractTracksFromXmi(), and findBranchEvent().
Definition at line 39 of file XMidiEventList.h.
Referenced by XMidiFile::ExtractTracksFromXmi(), XMidiSequence::getChanMask(), XMidiSequence::pause(), XMidiSequence::setVolume(), and XMidiSequence::unpause().
int XMidiEventList::counter [private] |
Definition at line 30 of file XMidiEventList.h.
Referenced by decerementCounter(), and incerementCounter().
Definition at line 40 of file XMidiEventList.h.
Referenced by convertListToMTrk(), decerementCounter(), LowLevelMidiDriver::extractTimbreLibrary(), XMidiFile::ExtractTracksFromMid(), XMidiFile::ExtractTracksFromU7V(), XMidiFile::ExtractTracksFromXmi(), XMidiFile::ExtractTracksFromXMIDIMT(), XMidiFile::InsertDisplayEvents(), XMidiSequence::playEvent(), write(), and XMidiSequence::XMidiSequence().