openMSX
|
Public Member Functions | |
MidiOutALSA (snd_seq_t &seq, snd_seq_client_info_t &cinfo, snd_seq_port_info_t &pinfo) | |
~MidiOutALSA () override | |
MidiOutALSA (const MidiOutALSA &)=delete | |
MidiOutALSA & | operator= (const MidiOutALSA &)=delete |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
std::string_view | getName () const override |
Name used to identify this pluggable. More... | |
std::string_view | getDescription () const override |
Description for this pluggable. More... | |
void | recvMessage (const std::vector< uint8_t > &message, EmuTime::param time) override |
Called when a full MIDI message is ready to be sent. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
void | recvByte (byte value, EmuTime::param time) override |
void | setDataBits (DataBits bits) override |
void | setStopBits (StopBits bits) override |
void | setParityBit (bool enable, ParityBit parity) override |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
virtual void | setDataBits (DataBits bits)=0 |
virtual void | setStopBits (StopBits bits)=0 |
virtual void | setParityBit (bool enable, ParityBit parity)=0 |
virtual void | recvByte (byte value, EmuTime::param time)=0 |
Additional Inherited Members | |
![]() | |
enum | DataBits { DATA_5 = 5 , DATA_6 = 6 , DATA_7 = 7 , DATA_8 = 8 } |
enum | StopBits { STOP_INV = 0 , STOP_1 = 2 , STOP_15 = 3 , STOP_2 = 4 } |
enum | ParityBit { EVEN = 0 , ODD = 1 } |
![]() | |
static constexpr size_t | MAX_MESSAGE_SIZE = 256 |
The limit for the amount of data we'll put into one MIDI message. More... | |
![]() | |
MidiOutDevice ()=default | |
void | clearBuffer () |
Discard any buffered partial MIDI message. More... | |
virtual void | recvMessage (const std::vector< uint8_t > &message, EmuTime::param time) |
Called when a full MIDI message is ready to be sent. More... | |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
![]() | |
~SerialDataInterface ()=default | |
Definition at line 25 of file MidiSessionALSA.cc.
openmsx::MidiOutALSA::MidiOutALSA | ( | snd_seq_t & | seq, |
snd_seq_client_info_t & | cinfo, | ||
snd_seq_port_info_t & | pinfo | ||
) |
Definition at line 62 of file MidiSessionALSA.cc.
|
override |
Definition at line 73 of file MidiSessionALSA.cc.
|
delete |
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 128 of file MidiSessionALSA.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 123 of file MidiSessionALSA.cc.
|
delete |
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 80 of file MidiSessionALSA.cc.
|
overridevirtual |
Called when a full MIDI message is ready to be sent.
Implementations that can handle raw bytes can override recvByte() instead, in which case this method will not be called.
Reimplemented from openmsx::MidiOutDevice.
Definition at line 133 of file MidiSessionALSA.cc.
void openmsx::MidiOutALSA::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 169 of file MidiSessionALSA.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 85 of file MidiSessionALSA.cc.