openMSX
Public Member Functions | List of all members
openmsx::MidiOutALSA Class Referencefinal
Inheritance diagram for openmsx::MidiOutALSA:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MidiOutALSA:
Collaboration graph
[legend]

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
 
MidiOutALSAoperator= (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.
 
std::string_view getDescription () const override
 Description for this pluggable.
 
void recvMessage (const std::vector< uint8_t > &message, EmuTime::param time) override
 Called when a full MIDI message is ready to be sent.
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::MidiOutDevice
std::string_view getClass () const final
 A pluggable belongs to a certain class.
 
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
 
- Public Member Functions inherited from openmsx::Pluggable
virtual ~Pluggable ()=default
 
void plug (Connector &connector, EmuTime::param time)
 This method is called when this pluggable is inserted in a connector.
 
void unplug (EmuTime::param time)
 This method is called when this pluggable is removed from a connector.
 
ConnectorgetConnector () const
 Get the connector this Pluggable is plugged into.
 
bool isPluggedIn () const
 Returns true if this pluggable is currently plugged into a connector.
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
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 Public Attributes inherited from openmsx::MidiOutDevice
static constexpr size_t MAX_MESSAGE_SIZE = 256
 The limit for the amount of data we'll put into one MIDI message.
 
- Protected Member Functions inherited from openmsx::MidiOutDevice
 MidiOutDevice ()=default
 
void clearBuffer ()
 Discard any buffered partial MIDI message.
 
- Protected Member Functions inherited from openmsx::Pluggable
 Pluggable ()
 
void setConnector (Connector *conn)
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Detailed Description

Definition at line 24 of file MidiSessionALSA.cc.

Constructor & Destructor Documentation

◆ MidiOutALSA() [1/2]

openmsx::MidiOutALSA::MidiOutALSA ( snd_seq_t &  seq,
snd_seq_client_info_t &  cinfo,
snd_seq_port_info_t &  pinfo 
)

Definition at line 61 of file MidiSessionALSA.cc.

◆ ~MidiOutALSA()

openmsx::MidiOutALSA::~MidiOutALSA ( )
override

Definition at line 72 of file MidiSessionALSA.cc.

◆ MidiOutALSA() [2/2]

openmsx::MidiOutALSA::MidiOutALSA ( const MidiOutALSA )
delete

Member Function Documentation

◆ getDescription()

std::string_view openmsx::MidiOutALSA::getDescription ( ) const
overridevirtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 127 of file MidiSessionALSA.cc.

◆ getName()

std::string_view openmsx::MidiOutALSA::getName ( ) const
overridevirtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 122 of file MidiSessionALSA.cc.

◆ operator=()

MidiOutALSA & openmsx::MidiOutALSA::operator= ( const MidiOutALSA )
delete

◆ plugHelper()

void openmsx::MidiOutALSA::plugHelper ( Connector connector,
EmuTime::param  time 
)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 79 of file MidiSessionALSA.cc.

◆ recvMessage()

void openmsx::MidiOutALSA::recvMessage ( const std::vector< uint8_t > &  message,
EmuTime::param  time 
)
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 132 of file MidiSessionALSA.cc.

◆ serialize()

template<typename Archive >
void openmsx::MidiOutALSA::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 168 of file MidiSessionALSA.cc.

◆ unplugHelper()

void openmsx::MidiOutALSA::unplugHelper ( EmuTime::param  time)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 84 of file MidiSessionALSA.cc.


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