#include <ALSAMidiDriver.h>
Inheritance diagram for ALSAMidiDriver:
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 MidiDriver * | createInstance () |
Static Private Attributes | |
static const MidiDriverDesc | desc |
Definition at line 28 of file ALSAMidiDriver.h.
ALSAMidiDriver::ALSAMidiDriver | ( | ) |
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] |
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
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] |
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().
const MidiDriver::MidiDriverDesc ALSAMidiDriver::desc [static, private] |
Initial value:
MidiDriver::MidiDriverDesc ("alsa", createInstance)
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] |
int ALSAMidiDriver::my_client [protected] |
int ALSAMidiDriver::my_port [protected] |
int ALSAMidiDriver::seq_client [protected] |
snd_seq_t* ALSAMidiDriver::seq_handle [protected] |
int ALSAMidiDriver::seq_port [protected] |