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

Function getOutputDeviceNames

plugins/midi/midi-helpers.cpp:367–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367static inline QStringList getOutputDeviceNames()
368{
369 QStringList devices;
370 try {
371 libremidi::observer obs;
372 for (const libremidi::output_port &port :
373 obs.get_output_ports()) {
374 devices << QString::fromStdString(
375 getNameFromPortInformation(port));
376 }
377 } catch (const libremidi::driver_error &error) {
378 blog(LOG_WARNING, "Failed to get midi output devices: %s",
379 error.what());
380 }
381 return devices;
382}
383
384static std::string getPortNameFromNumber(MidiDeviceType type, int port)
385{

Callers 2

getPortNameFromNumberFunction · 0.85
MidiDeviceSelectionMethod · 0.85

Calls 2

whatMethod · 0.45

Tested by

no test coverage detected