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

Method getInputDeviceName

src/rtmidi.cpp:286–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()))

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.85
whatMethod · 0.80

Tested by

no test coverage detected