#include <midiport/midiportinfo.h>
Public Member Functions | |
| bool | init (utility::ErrorState &errorState) |
| int | getInputPortCount () |
| std::string | getInputPortName (int portNumber) |
| int | getInputPortNumber (const std::string &portName) |
| int | getOutputPortCount () |
| std::string | getOutputPortName (int portNumber) |
| int | getOutputPortNumber (const std::string &portName) |
| void | printPorts () |
Helper class to poll rtmidi for available input and output ports
| int getInputPortCount | ( | ) |
Returns number of available midi input ports on the system.
| std::string getInputPortName | ( | int | portNumber | ) |
Returns the name of a given input port number on this system.
| int getInputPortNumber | ( | const std::string & | portName | ) |
Returns the number of an input port with the given name. Returns -1 when no port with this name has been found.
| int getOutputPortCount | ( | ) |
Returns the number of available midi output ports on the system.
| std::string getOutputPortName | ( | int | portNumber | ) |
Returns the name of a given output port number on this system.
| int getOutputPortNumber | ( | const std::string & | portName | ) |
Returns the number of an output port with the given name. Returns -1 when no port with this name has been found.
| bool init | ( | utility::ErrorState & | errorState | ) |
Tries to initialize RtMidi
| errorState | RtMidi initialization error |
| void printPorts | ( | ) |
Logs a list of all available midi input and output ports on this system.