MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / audioDevicePresent

Function audioDevicePresent

src/gui/MainWindow.cpp:378–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378bool audioDevicePresent(const QList<QAudioDevice>& devices,
379 const QAudioDevice& target)
380{
381 if (target.isNull())
382 return true;
383
384 return std::any_of(devices.cbegin(), devices.cend(),
385 [&target](const QAudioDevice& device) {
386 return device.id() == target.id();
387 });
388}
389
390bool sameAudioDeviceSelection(const QAudioDevice& lhs, const QAudioDevice& rhs)
391{

Callers 1

Calls 2

isNullMethod · 0.80
idMethod · 0.80

Tested by

no test coverage detected