///////////////////////////////////////////////////////
| 50 | |
| 51 | //////////////////////////////////////////////////////////// |
| 52 | std::optional<std::string> getDefaultDevice() |
| 53 | { |
| 54 | for (const auto& device : priv::AudioDevice::getAvailableDevices()) |
| 55 | { |
| 56 | if (device.isDefault) |
| 57 | return device.name; |
| 58 | } |
| 59 | |
| 60 | return std::nullopt; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | //////////////////////////////////////////////////////////// |
no test coverage detected