#include <UnixSeqMidiDriver.h>
Inheritance diagram for UnixSeqMidiDriver:
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 MidiDriver * | createInstance () |
Static Private Attributes | |
static const MidiDriverDesc | desc |
Definition at line 28 of file UnixSeqMidiDriver.h.
UnixSeqMidiDriver::UnixSeqMidiDriver | ( | ) |
Definition at line 39 of file UnixSeqMidiDriver.cpp.
References devname, and MidiDriver::getConfigSetting().
Referenced by createInstance().
void UnixSeqMidiDriver::close | ( | ) | [protected, virtual] |
Close the Midi Device.
Implements LowLevelMidiDriver.
Definition at line 64 of file UnixSeqMidiDriver.cpp.
static MidiDriver* UnixSeqMidiDriver::createInstance | ( | ) | [inline, static, private] |
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
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.
const MidiDriver::MidiDriverDesc UnixSeqMidiDriver::desc [static, private] |
Initial value:
MidiDriver::MidiDriverDesc ("UnixSeqDevice", createInstance)
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] |
std::string UnixSeqMidiDriver::devname [protected] |
bool UnixSeqMidiDriver::isOpen [protected] |