#include <midiport/midioutputport.h>
Public Member Functions | |
| MidiOutputPort (Core &core) | |
| virtual | ~MidiOutputPort () override |
| virtual bool | start (utility::ErrorState &errorState) override |
| virtual void | stop () override |
| MidiService & | getService () |
| void | sendEvent (const MidiEvent &event) |
| int | getPortNumber () const |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| 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... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| 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.
| MidiOutputPort | ( | Core & | core | ) |
|
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.