ALSAMidiDriver Class Reference

#include <ALSAMidiDriver.h>

Inheritance diagram for ALSAMidiDriver:

LowLevelMidiDriver MidiDriver XMidiSequenceHandler List of all members.

Public Member Functions

 ALSAMidiDriver ()

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)
void send_event (int do_flush)
int parse_addr (std::string arg, int *client, int *port)

Protected Attributes

std::string devname
bool isOpen
snd_seq_event_t ev
snd_seq_t * seq_handle
int seq_client
int seq_port
int my_client
int my_port

Static Private Member Functions

static MidiDrivercreateInstance ()

Static Private Attributes

static const MidiDriverDesc desc

Detailed Description

Definition at line 28 of file ALSAMidiDriver.h.


Constructor & Destructor Documentation

ALSAMidiDriver::ALSAMidiDriver (  ) 

Definition at line 50 of file ALSAMidiDriver.cpp.

References ev.

Referenced by createInstance().


Member Function Documentation

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

Close the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 113 of file ALSAMidiDriver.cpp.

References isOpen, and seq_handle.

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

Definition at line 31 of file ALSAMidiDriver.h.

References ALSAMidiDriver().

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

Definition at line 36 of file ALSAMidiDriver.h.

References desc.

Referenced by InitMidiDriverVector().

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

Open the Midi Device

Returns:
0 on sucess. Non zero on failure.

Implements LowLevelMidiDriver.

Definition at line 57 of file ALSAMidiDriver.cpp.

References MidiDriver::getConfigSetting(), isOpen, my_client, my_port, parse_addr(), perr, pout, seq_client, seq_handle, and seq_port.

int ALSAMidiDriver::parse_addr ( std::string  arg,
int *  client,
int *  port 
) [protected]

Definition at line 187 of file ALSAMidiDriver.cpp.

Referenced by open().

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

Send a message to the Midi Device.

Implements LowLevelMidiDriver.

Definition at line 119 of file ALSAMidiDriver.cpp.

References ev, PentZip::int(), PentZip::long(), perr, and send_event().

void ALSAMidiDriver::send_event ( int  do_flush  )  [protected]

Definition at line 206 of file ALSAMidiDriver.cpp.

References ev, my_port, seq_client, seq_handle, and seq_port.

Referenced by send(), and send_sysex().

void ALSAMidiDriver::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 172 of file ALSAMidiDriver.cpp.

References ev, perr, and send_event().


Member Data Documentation

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

Initial value:

Definition at line 30 of file ALSAMidiDriver.h.

Referenced by getDesc().

std::string ALSAMidiDriver::devname [protected]

Definition at line 47 of file ALSAMidiDriver.h.

snd_seq_event_t ALSAMidiDriver::ev [protected]

Definition at line 50 of file ALSAMidiDriver.h.

Referenced by ALSAMidiDriver(), send(), send_event(), and send_sysex().

bool ALSAMidiDriver::isOpen [protected]

Definition at line 48 of file ALSAMidiDriver.h.

Referenced by close(), and open().

int ALSAMidiDriver::my_client [protected]

Definition at line 53 of file ALSAMidiDriver.h.

Referenced by open().

int ALSAMidiDriver::my_port [protected]

Definition at line 53 of file ALSAMidiDriver.h.

Referenced by open(), and send_event().

int ALSAMidiDriver::seq_client [protected]

Definition at line 52 of file ALSAMidiDriver.h.

Referenced by open(), and send_event().

snd_seq_t* ALSAMidiDriver::seq_handle [protected]

Definition at line 51 of file ALSAMidiDriver.h.

Referenced by close(), open(), and send_event().

int ALSAMidiDriver::seq_port [protected]

Definition at line 52 of file ALSAMidiDriver.h.

Referenced by open(), and send_event().


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