CoreAudioMidiDriver Class Reference

#include <CoreAudioMidiDriver.h>

Inheritance diagram for CoreAudioMidiDriver:

LowLevelMidiDriver MidiDriver XMidiSequenceHandler List of all members.

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 MidiDrivercreateInstance ()

Private Attributes

AudioUnit au_MusicDevice
AudioUnit au_output
MIDIClientRef mClient
MIDIPortRef mOutPort
MIDIEndpointRef mDest

Static Private Attributes

static const MidiDriverDesc desc

Detailed Description

Definition at line 30 of file CoreAudioMidiDriver.h.


Constructor & Destructor Documentation

CoreAudioMidiDriver::CoreAudioMidiDriver (  ) 

Definition at line 39 of file CoreAudioMidiDriver.cpp.

References mClient.

Referenced by createInstance().

CoreAudioMidiDriver::~CoreAudioMidiDriver (  ) 

Definition at line 48 of file CoreAudioMidiDriver.cpp.

References mClient.


Member Function Documentation

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]

Definition at line 40 of file CoreAudioMidiDriver.h.

References CoreAudioMidiDriver().

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

Returns:
0 on sucess. Non zero on failure.

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.


Member Data Documentation

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:

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().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:00 2007 for pentagram by  doxygen 1.4.7