| 225 | } |
| 226 | |
| 227 | int Input::getDefaultDeviceId() { |
| 228 | if (!driver) |
| 229 | return -1; |
| 230 | try { |
| 231 | return driver->getDefaultInputDeviceId(); |
| 232 | } |
| 233 | catch (Exception& e) { |
| 234 | WARN("MIDI port get default input device ID: %s", e.what()); |
| 235 | return -1; |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | void Input::setDeviceId(int deviceId) { |
| 240 | // Destroy device |
no test coverage detected