ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge
Inheritance diagram for MidiDriver_ALSA:
Collaboration diagram for MidiDriver_ALSA:

List of all members.

Public Member Functions

 MidiDriver_ALSA (int client, int port)
int open ()
 Open the midi driver.
bool isOpen () const
 Check whether the midi driver has already been opened.
void close ()
 Close the midi driver.
void send (uint32 b)
 Output a packed midi command to the midi stream.
void sysEx (const byte *msg, uint16 length)
 Transmit a sysEx to the midi device.

Private Member Functions

void send_event (int do_flush)

Private Attributes

bool _isOpen
snd_seq_event_t ev
snd_seq_t * seq_handle
int seq_client
int seq_port
int my_client
int my_port
int8 _channel0Volume

Detailed Description

Definition at line 70 of file alsa.cpp.


Constructor & Destructor Documentation

MidiDriver_ALSA::MidiDriver_ALSA ( int  client,
int  port 
)

Definition at line 90 of file alsa.cpp.


Member Function Documentation

void MidiDriver_ALSA::close (  )  [virtual]

Close the midi driver.

Reimplemented from MidiDriver_MPU401.

Definition at line 173 of file alsa.cpp.

bool MidiDriver_ALSA::isOpen (  )  const [inline, virtual]

Check whether the midi driver has already been opened.

Implements MidiDriver.

Definition at line 74 of file alsa.cpp.

int MidiDriver_ALSA::open (  )  [virtual]

Open the midi driver.

Returns:
0 if successful, otherwise an error code.

Implements MidiDriver.

Definition at line 95 of file alsa.cpp.

void MidiDriver_ALSA::send ( uint32  b  )  [virtual]

Output a packed midi command to the midi stream.

The 'lowest' byte (i.e. b & 0xFF) is the status code, then come (if used) the first and second opcode.

Implements MidiDriver_BASE.

Definition at line 183 of file alsa.cpp.

void MidiDriver_ALSA::send_event ( int  do_flush  )  [private]

Definition at line 281 of file alsa.cpp.

void MidiDriver_ALSA::sysEx ( const byte msg,
uint16  length 
) [virtual]

Transmit a sysEx to the midi device.

The given msg MUST NOT contain the usual SysEx frame, i.e. do NOT include the leading 0xF0 and the trailing 0xF7.

Furthermore, the maximal supported length of a SysEx is 264 bytes. Passing longer buffers can lead to undefined behavior (most likely, a crash).

Reimplemented from MidiDriver_BASE.

Definition at line 261 of file alsa.cpp.


Member Data Documentation

Definition at line 87 of file alsa.cpp.

bool MidiDriver_ALSA::_isOpen [private]

Definition at line 81 of file alsa.cpp.

snd_seq_event_t MidiDriver_ALSA::ev [private]

Definition at line 82 of file alsa.cpp.

Definition at line 85 of file alsa.cpp.

int MidiDriver_ALSA::my_port [private]

Definition at line 85 of file alsa.cpp.

Definition at line 84 of file alsa.cpp.

snd_seq_t* MidiDriver_ALSA::seq_handle [private]

Definition at line 83 of file alsa.cpp.

Definition at line 84 of file alsa.cpp.


The documentation for this class was generated from the following file:


Generated on Sat Jun 22 2019 05:02:35 for ResidualVM by doxygen 1.7.1
curved edge   curved edge