| 284 | } |
| 285 | |
| 286 | std::string getInputDeviceName(int deviceId) override { |
| 287 | if (deviceId < 0) |
| 288 | return ""; |
| 289 | try { |
| 290 | return rtMidiIn->getPortName(deviceId); |
| 291 | } |
| 292 | catch (RtMidiError& e) { |
| 293 | throw Exception("Failed to get RtMidi input device name: %s", e.what()); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | midi::InputDevice* subscribeInput(int deviceId, midi::Input* input) override { |
| 298 | if (!(0 <= deviceId && deviceId < (int) rtMidiIn->getPortCount())) |