MCPcopy Create free account
hub / github.com/VCVRack/Rack / getDefaultDeviceId

Method getDefaultDeviceId

src/midi.cpp:227–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227int 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
239void Input::setDeviceId(int deviceId) {
240 // Destroy device

Callers 1

setDriverIdMethod · 0.45

Calls 3

whatMethod · 0.80

Tested by

no test coverage detected