#include <CoreAudioMidiDriver.h>
Inheritance diagram for CoreAudioMidiDriver:
Public Member Functions | |
CoreAudioMidiDriver () | |
~CoreAudioMidiDriver () | |
Static Public Member Functions | |
static const MidiDriverDesc * | getDesc () |
Protected Member Functions | |
virtual int | open () |
virtual void | close () |
virtual void | send (uint32 message) |
virtual void | send_sysex (uint8 status, const uint8 *msg, uint16 length) |
virtual void | increaseThreadPriority () |
virtual void | yield () |
Static Private Member Functions | |
static MidiDriver * | createInstance () |
Private Attributes | |
AudioUnit | au_MusicDevice |
AudioUnit | au_output |
MIDIClientRef | mClient |
MIDIPortRef | mOutPort |
MIDIEndpointRef | mDest |
Static Private Attributes | |
static const MidiDriverDesc | desc |
Definition at line 30 of file CoreAudioMidiDriver.h.
CoreAudioMidiDriver::CoreAudioMidiDriver | ( | ) |
Definition at line 39 of file CoreAudioMidiDriver.cpp.
References mClient.
Referenced by createInstance().
CoreAudioMidiDriver::~CoreAudioMidiDriver | ( | ) |
void CoreAudioMidiDriver::close | ( | ) | [protected, virtual] |
Close the Midi Device.
Implements LowLevelMidiDriver.
Definition at line 109 of file CoreAudioMidiDriver.cpp.
References au_MusicDevice, au_output, mDest, and mOutPort.
static MidiDriver* CoreAudioMidiDriver::createInstance | ( | ) | [inline, static, private] |
static const MidiDriverDesc* CoreAudioMidiDriver::getDesc | ( | ) | [inline, static] |
Definition at line 45 of file CoreAudioMidiDriver.h.
References desc.
Referenced by InitMidiDriverVector().
void CoreAudioMidiDriver::increaseThreadPriority | ( | ) | [protected, virtual] |
Increate the Thread Priority of the Play (current) thread.
Reimplemented from LowLevelMidiDriver.
Definition at line 188 of file CoreAudioMidiDriver.cpp.
int CoreAudioMidiDriver::open | ( | ) | [protected, virtual] |
Open the Midi Device
Implements LowLevelMidiDriver.
Definition at line 55 of file CoreAudioMidiDriver.cpp.
References au_MusicDevice, au_output, mClient, mDest, and mOutPort.
void CoreAudioMidiDriver::send | ( | uint32 | message | ) | [protected, virtual] |
Send a message to the Midi Device.
Implements LowLevelMidiDriver.
Definition at line 127 of file CoreAudioMidiDriver.cpp.
References au_MusicDevice, au_output, mDest, and mOutPort.
void CoreAudioMidiDriver::send_sysex | ( | uint8 | status, | |
const uint8 * | msg, | |||
uint16 | length | |||
) | [protected, virtual] |
Send a SysEX message to the Midi Device.
Reimplemented from LowLevelMidiDriver.
Definition at line 153 of file CoreAudioMidiDriver.cpp.
References au_MusicDevice, au_output, mDest, and mOutPort.
void CoreAudioMidiDriver::yield | ( | ) | [protected, virtual] |
Yield execution of the current thread.
Reimplemented from LowLevelMidiDriver.
Definition at line 200 of file CoreAudioMidiDriver.cpp.
AudioUnit CoreAudioMidiDriver::au_MusicDevice [private] |
Definition at line 32 of file CoreAudioMidiDriver.h.
Referenced by close(), open(), send(), and send_sysex().
AudioUnit CoreAudioMidiDriver::au_output [private] |
Definition at line 33 of file CoreAudioMidiDriver.h.
Referenced by close(), open(), send(), and send_sysex().
const MidiDriver::MidiDriverDesc CoreAudioMidiDriver::desc [static, private] |
Initial value:
MidiDriver::MidiDriverDesc ("CoreAudio", createInstance)
Definition at line 39 of file CoreAudioMidiDriver.h.
Referenced by getDesc().
MIDIClientRef CoreAudioMidiDriver::mClient [private] |
Definition at line 35 of file CoreAudioMidiDriver.h.
Referenced by CoreAudioMidiDriver(), open(), and ~CoreAudioMidiDriver().
MIDIEndpointRef CoreAudioMidiDriver::mDest [private] |
Definition at line 37 of file CoreAudioMidiDriver.h.
Referenced by close(), open(), send(), and send_sysex().
MIDIPortRef CoreAudioMidiDriver::mOutPort [private] |
Definition at line 36 of file CoreAudioMidiDriver.h.
Referenced by close(), open(), send(), and send_sysex().