| 376 | } |
| 377 | |
| 378 | bool 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 | |
| 390 | bool sameAudioDeviceSelection(const QAudioDevice& lhs, const QAudioDevice& rhs) |
| 391 | { |
no test coverage detected