MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / getInputDeviceNames

Function getInputDeviceNames

plugins/midi/midi-helpers.cpp:350–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350static inline QStringList getInputDeviceNames()
351{
352 QStringList devices;
353 try {
354 libremidi::observer obs;
355 for (const libremidi::input_port &port :
356 obs.get_input_ports()) {
357 devices << QString::fromStdString(
358 getNameFromPortInformation(port));
359 }
360 } catch (const libremidi::driver_error &error) {
361 blog(LOG_WARNING, "Failed to get midi input devices: %s",
362 error.what());
363 }
364 return devices;
365}
366
367static inline QStringList getOutputDeviceNames()
368{

Callers 2

getPortNameFromNumberFunction · 0.85
MidiDeviceSelectionMethod · 0.85

Calls 2

whatMethod · 0.45

Tested by

no test coverage detected