Wraps a MIDI driver API containing any number of MIDI devices.
More...
#include <midi.hpp>
Wraps a MIDI driver API containing any number of MIDI devices.
◆ ~Driver()
virtual rack::midi::Driver::~Driver |
( |
| ) |
|
|
inlinevirtual |
◆ getName()
virtual std::string rack::midi::Driver::getName |
( |
| ) |
|
|
inlinevirtual |
Returns the name of the driver.
E.g. "ALSA".
◆ getInputDeviceIds()
virtual std::vector< int > rack::midi::Driver::getInputDeviceIds |
( |
| ) |
|
|
inlinevirtual |
Returns a list of all input device IDs that can be subscribed to.
◆ getDefaultInputDeviceId()
virtual int rack::midi::Driver::getDefaultInputDeviceId |
( |
| ) |
|
|
inlinevirtual |
Returns the default device to use when the driver is selected, or -1 for none.
◆ getInputDeviceName()
virtual std::string rack::midi::Driver::getInputDeviceName |
( |
int | deviceId | ) |
|
|
inlinevirtual |
Returns the name of an input device without obtaining it.
◆ subscribeInput()
virtual InputDevice * rack::midi::Driver::subscribeInput |
( |
int | deviceId, |
|
|
Input * | input ) |
|
inlinevirtual |
Adds the given port as a reference holder of a device and returns the it.
Creates the Device if no ports are subscribed before calling.
◆ unsubscribeInput()
virtual void rack::midi::Driver::unsubscribeInput |
( |
int | deviceId, |
|
|
Input * | input ) |
|
inlinevirtual |
Removes the give port as a reference holder of a device.
Deletes the Device if no ports are subscribed after calling.
◆ getOutputDeviceIds()
virtual std::vector< int > rack::midi::Driver::getOutputDeviceIds |
( |
| ) |
|
|
inlinevirtual |
◆ getDefaultOutputDeviceId()
virtual int rack::midi::Driver::getDefaultOutputDeviceId |
( |
| ) |
|
|
inlinevirtual |
◆ getOutputDeviceName()
virtual std::string rack::midi::Driver::getOutputDeviceName |
( |
int | deviceId | ) |
|
|
inlinevirtual |
◆ subscribeOutput()
virtual OutputDevice * rack::midi::Driver::subscribeOutput |
( |
int | deviceId, |
|
|
Output * | output ) |
|
inlinevirtual |
◆ unsubscribeOutput()
virtual void rack::midi::Driver::unsubscribeOutput |
( |
int | deviceId, |
|
|
Output * | output ) |
|
inlinevirtual |
The documentation for this struct was generated from the following file:
- /home/vortico/src/vcv/Rack2/include/midi.hpp