#include <midiport/midioutputport.h>
Public Member Functions | |
MidiOutputPort ()=default | |
MidiOutputPort (MidiService &service) | |
virtual | ~MidiOutputPort () override |
virtual bool | start (utility::ErrorState &errorState) override |
virtual void | stop () override |
MidiService & | getService () |
void | sendEvent (const MidiEvent &event) |
int | getPortNumber () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
bool | mAllowFailure = false |
Property: "AllowFailure" failure to find and open port is allowed on startup when set to true. More... | |
std::string | mPortName = "" |
Property: 'Port' The name of the port that midi messages will be sent through. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Opens a midi output port that midi messages can be sent to. Ports are identified by name and assigned a number when opened. Failure to find and open the midi port is allowed when 'AllowFailure' is set to true.
|
default |
MidiOutputPort | ( | MidiService & | service | ) |
|
overridevirtual |
int getPortNumber | ( | ) | const |
MidiService& getService | ( | ) |
void sendEvent | ( | const MidiEvent & | event | ) |
Sends a midi event through this output port.
event | the event to send. |
|
overridevirtual |
Opens the midi output port.
errorState | contains the reason why the port could not be opened. |
Reimplemented from Device.
|
overridevirtual |
Stops the midi output port.
Reimplemented from Device.
bool mAllowFailure = false |
Property: "AllowFailure" failure to find and open port is allowed on startup when set to true.
std::string mPortName = "" |
Property: 'Port' The name of the port that midi messages will be sent through.