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

Method getOutputDeviceName

src/rtmidi.cpp:349–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 }
348
349 std::string getOutputDeviceName(int deviceId) override {
350 if (deviceId < 0)
351 return "";
352 try {
353 return rtMidiOut->getPortName(deviceId);
354 }
355 catch (RtMidiError& e) {
356 throw Exception("Failed to get RtMidi output device count: %s", e.what());
357 }
358 }
359
360 midi::OutputDevice* subscribeOutput(int deviceId, midi::Output* output) override {
361 if (!(0 <= deviceId && deviceId < (int) rtMidiOut->getPortCount()))

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.85
whatMethod · 0.80

Tested by

no test coverage detected