UnixSeqMidiDriver Class Reference

#include <UnixSeqMidiDriver.h>

Inheritance diagram for UnixSeqMidiDriver:

LowLevelMidiDriver MidiDriver XMidiSequenceHandler List of all members.

Public Member Functions

 UnixSeqMidiDriver ()

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)

Protected Attributes

std::string devname
bool isOpen
int device
int deviceNum

Static Private Member Functions

static MidiDrivercreateInstance ()

Static Private Attributes

static const MidiDriverDesc desc

Detailed Description

Definition at line 28 of file UnixSeqMidiDriver.h.


Constructor & Destructor Documentation

UnixSeqMidiDriver::UnixSeqMidiDriver (  ) 

Definition at line 39 of file UnixSeqMidiDriver.cpp.

References devname, and MidiDriver::getConfigSetting().

Referenced by createInstance().


Member Function Documentation

void UnixSeqMidiDriver::close (  )  [protected, virtual]

Close the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 64 of file UnixSeqMidiDriver.cpp.

References device, and isOpen.

static MidiDriver* UnixSeqMidiDriver::createInstance (  )  [inline, static, private]

Definition at line 31 of file UnixSeqMidiDriver.h.

References UnixSeqMidiDriver().

static const MidiDriverDesc* UnixSeqMidiDriver::getDesc (  )  [inline, static]

Definition at line 36 of file UnixSeqMidiDriver.h.

References desc.

Referenced by InitMidiDriverVector().

int UnixSeqMidiDriver::open (  )  [protected, virtual]

Open the Midi Device

Returns:
0 on sucess. Non zero on failure.

Implements LowLevelMidiDriver.

Definition at line 46 of file UnixSeqMidiDriver.cpp.

References device, devname, errno, isOpen, perr, pout, and strerror().

void UnixSeqMidiDriver::send ( uint32  message  )  [protected, virtual]

Send a message to the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 70 of file UnixSeqMidiDriver.cpp.

References device, deviceNum, PentZip::int(), and perr.

void UnixSeqMidiDriver::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 113 of file UnixSeqMidiDriver.cpp.

References device, deviceNum, and perr.


Member Data Documentation

const MidiDriver::MidiDriverDesc UnixSeqMidiDriver::desc [static, private]

Initial value:

Definition at line 30 of file UnixSeqMidiDriver.h.

Referenced by getDesc().

int UnixSeqMidiDriver::device [protected]

Definition at line 49 of file UnixSeqMidiDriver.h.

Referenced by close(), open(), send(), and send_sysex().

int UnixSeqMidiDriver::deviceNum [protected]

Definition at line 49 of file UnixSeqMidiDriver.h.

Referenced by send(), and send_sysex().

std::string UnixSeqMidiDriver::devname [protected]

Definition at line 47 of file UnixSeqMidiDriver.h.

Referenced by open(), and UnixSeqMidiDriver().

bool UnixSeqMidiDriver::isOpen [protected]

Definition at line 48 of file UnixSeqMidiDriver.h.

Referenced by close(), and open().


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