svcore
1.9
|
#include <MIDIInput.h>
Signals | |
void | eventsAvailable () |
Public Member Functions | |
MIDIInput (QString name, FrameTimer *timer) | |
virtual | ~MIDIInput () |
bool | isOK () const |
bool | isEmpty () const |
int | getEventsAvailable () const |
MIDIEvent | readEvent () |
Protected Member Functions | |
void | callback (double, std::vector< unsigned char > *) |
void | postEvent (MIDIEvent) |
Static Protected Member Functions | |
static void | staticCallback (double, std::vector< unsigned char > *, void *) |
Protected Attributes | |
RtMidiIn * | m_rtmidi |
FrameTimer * | m_frameTimer |
RingBuffer< MIDIEvent * > | m_buffer |
Definition at line 28 of file MIDIInput.h.
MIDIInput::MIDIInput | ( | QString | name, |
FrameTimer * | timer | ||
) |
Definition at line 22 of file MIDIInput.cpp.
References m_rtmidi, and staticCallback().
MIDIInput::~MIDIInput | ( | ) | [virtual] |
Definition at line 38 of file MIDIInput.cpp.
References m_rtmidi.
bool MIDIInput::isOK | ( | ) | const [inline] |
Definition at line 36 of file MIDIInput.h.
References m_rtmidi.
bool MIDIInput::isEmpty | ( | ) | const [inline] |
Definition at line 38 of file MIDIInput.h.
References getEventsAvailable().
int MIDIInput::getEventsAvailable | ( | ) | const [inline] |
Definition at line 39 of file MIDIInput.h.
References RingBuffer< T, N >::getReadSpace(), and m_buffer.
Referenced by isEmpty().
Definition at line 69 of file MIDIInput.cpp.
References m_buffer, and RingBuffer< T, N >::readOne().
void MIDIInput::eventsAvailable | ( | ) | [signal] |
Referenced by postEvent().
void MIDIInput::staticCallback | ( | double | timestamp, |
std::vector< unsigned char > * | message, | ||
void * | userData | ||
) | [static, protected] |
Definition at line 44 of file MIDIInput.cpp.
Referenced by MIDIInput().
void MIDIInput::callback | ( | double | timestamp, |
std::vector< unsigned char > * | message | ||
) | [protected] |
Definition at line 51 of file MIDIInput.cpp.
References FrameTimer::getFrame(), m_frameTimer, postEvent(), and SVDEBUG.
void MIDIInput::postEvent | ( | MIDIEvent | e | ) | [protected] |
Definition at line 78 of file MIDIInput.cpp.
References eventsAvailable(), RingBuffer< T, N >::getSize(), RingBuffer< T, N >::getWriteSpace(), m_buffer, SVDEBUG, and RingBuffer< T, N >::write().
Referenced by callback().
RtMidiIn* MIDIInput::m_rtmidi [protected] |
Definition at line 46 of file MIDIInput.h.
Referenced by isOK(), MIDIInput(), and ~MIDIInput().
FrameTimer* MIDIInput::m_frameTimer [protected] |
Definition at line 47 of file MIDIInput.h.
Referenced by callback().
RingBuffer<MIDIEvent *> MIDIInput::m_buffer [protected] |
Definition at line 53 of file MIDIInput.h.
Referenced by getEventsAvailable(), postEvent(), and readEvent().