24 #ifndef RTMIDIIMPLEMENTATION_H
25 #define RTMIDIIMPLEMENTATION_H
26 #include "../../config.h"
33 #if CONFIG_ENABLE_RTMIDI
35 #include "../../thirdparty/RtMidi/RtMidi.h"
58 void init() override final;
59 void exit() override final;
64 bool OpenPort (
int i, std::
string AppName="") override final;
65 bool OpenPort (std::
string AppName="")override final;
74 static void StaticCallback (
double deltatime, std::vector< unsigned char > *message,
void *);
77 #endif // CONFIG_ENABLE_RTMIDI
78 #endif // RTMIDIIMPLEMENTATION_H
RtMidiImplementation()
Constructor without functionality.
int mCurrentPort
The current port that is used or -1 of none.
void init() overridefinal
Initialize RtMidi implementation.
std::unique_ptr< RtMidiIn > mRtMidi
Instance of the third-party MIDI interface.
~RtMidiImplementation()
Destructor without functionality.
std::string GetPortName(int i) overridefinal
Get the name of device number i (starting with zero)
int getCurrentPort() const overridefinal
Get the current port number.
Interface for reading an externally connected MIDI keyboard.
std::string GetPortNames() overridefinal
Get a list of all available input devices.
static void StaticCallback(double deltatime, std::vector< unsigned char > *message, void *)
Static callback function (private)
void exit() overridefinal
Shut down RtMidi implementation.
int GetNumberOfPorts() overridefinal
Get the number of available MIDI input ports.
Adapter class for reading an externally connected MIDI keyboard.
bool OpenPort(int i, std::string AppName="") overridefinal
Open MIDI input device number i.
void ClearQueue()
Clear the MIDI input queue.