1#ifndef MIDIOUTDEVICE_HH
2#define MIDIOUTDEVICE_HH
24 [[nodiscard]] std::string_view
getClass() const final;
27 void recvByte(
byte value, EmuTime::param time) override;
44 const
std::vector<uint8_t>& message, EmuTime::param time);
47 std::vector<uint8_t> buffer;
Pluggable that connects an MSX MIDI out port to a host MIDI device.
void clearBuffer()
Discard any buffered partial MIDI message.
virtual void recvMessage(const std::vector< uint8_t > &message, EmuTime::param time)
Called when a full MIDI message is ready to be sent.
static constexpr size_t MAX_MESSAGE_SIZE
The limit for the amount of data we'll put into one MIDI message.
void setParityBit(bool enable, Parity parity) override
void setStopBits(StopBits bits) override
std::string_view getClass() const final
A pluggable belongs to a certain class.
void setDataBits(DataBits bits) override
void recvByte(byte value, EmuTime::param time) override
This file implemented 3 utility functions: