///////////////////////////////////////////////////////
| 363 | |
| 364 | //////////////////////////////////////////////////////////// |
| 365 | std::string SoundRecorder::getDefaultDevice() |
| 366 | { |
| 367 | const auto devices = Impl::getAvailableDevices(); |
| 368 | |
| 369 | for (const auto& device : devices) |
| 370 | { |
| 371 | if (device.isDefault) |
| 372 | return device.name; |
| 373 | } |
| 374 | |
| 375 | return ""; |
| 376 | } |
| 377 | |
| 378 | |
| 379 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected