#include <port.h>
Definition at line 45 of file midi++2/midi++/port.h.
◆ Flags
◆ Port() [1/2]
MIDI::Port::Port |
( |
std::string const & |
, |
|
|
Flags |
|
|
) |
| |
◆ Port() [2/2]
MIDI::Port::Port |
( |
const XMLNode & |
| ) |
|
◆ ~Port()
virtual MIDI::Port::~Port |
( |
| ) |
|
|
virtual |
◆ centrally_parsed()
virtual bool MIDI::Port::centrally_parsed |
( |
| ) |
const |
|
virtual |
◆ channel()
◆ clock()
◆ drain()
virtual void MIDI::Port::drain |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
inlinevirtual |
block until the output FIFO used by non-process threads is empty, checking every check_interval_usecs usecs for current status. Not to be called by a thread that executes any part of a JACK process callback (will simply return immediately in that situation).
Reimplemented in ARDOUR::AsyncMIDIPort.
Definition at line 80 of file midi++2/midi++/port.h.
◆ get_state()
virtual XMLNode& MIDI::Port::get_state |
( |
| ) |
const |
|
virtual |
◆ init()
void MIDI::Port::init |
( |
std::string const & |
, |
|
|
Flags |
|
|
) |
| |
|
protected |
◆ midimsg()
Write a message to port.
- Returns
- true on success. FIXME: describe semantics here
Definition at line 86 of file midi++2/midi++/port.h.
◆ name()
const char* MIDI::Port::name |
( |
| ) |
const |
|
inline |
◆ ok()
bool MIDI::Port::ok |
( |
void |
| ) |
const |
|
inline |
◆ parse()
virtual void MIDI::Port::parse |
( |
samplecnt_t |
timestamp | ) |
|
|
pure virtual |
◆ parser()
Parser* MIDI::Port::parser |
( |
| ) |
|
|
inline |
◆ read()
virtual int MIDI::Port::read |
( |
byte * |
buf, |
|
|
size_t |
bufsize |
|
) |
| |
|
pure virtual |
Read raw bytes from a port.
- Parameters
-
buf | memory to store read data in |
bufsize | size of buf |
- Returns
- number of bytes successfully read, negative if error
Implemented in ARDOUR::AsyncMIDIPort, and MIDI::IPMIDIPort.
◆ receives_input()
bool MIDI::Port::receives_input |
( |
| ) |
const |
|
inline |
◆ selectable()
virtual int MIDI::Port::selectable |
( |
| ) |
const |
|
pure virtual |
◆ sends_output()
bool MIDI::Port::sends_output |
( |
| ) |
const |
|
inline |
◆ set_centrally_parsed()
void MIDI::Port::set_centrally_parsed |
( |
bool |
yn | ) |
|
|
inline |
◆ set_state()
virtual void MIDI::Port::set_state |
( |
const XMLNode & |
| ) |
|
|
virtual |
◆ write()
virtual int MIDI::Port::write |
( |
const byte * |
msg, |
|
|
size_t |
msglen, |
|
|
timestamp_t |
timestamp |
|
) |
| |
|
pure virtual |
Write a message to port.
- Parameters
-
msg | Raw MIDI message to send |
msglen | Size of msg |
timestamp | Time stamp in samples of this message (relative to cycle start) |
- Returns
- number of bytes successfully written
Implemented in ARDOUR::AsyncMIDIPort, and MIDI::IPMIDIPort.
◆ _centrally_parsed
bool MIDI::Port::_centrally_parsed |
|
protected |
◆ _channel
◆ _flags
◆ _ok
◆ _parser
◆ _tagname
std::string MIDI::Port::_tagname |
|
protected |
◆ state_node_name
std::string MIDI::Port::state_node_name |
|
static |
The documentation for this class was generated from the following file: