mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 01:22:36 +02:00
adding new device to list if default not found
This commit is contained in:
parent
549e181be0
commit
3a764169ba
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ QList<HifiAudioDeviceInfo> getAvailableDevices(QAudio::Mode mode, const QString&
|
|||
if (devices.size() > 0) {
|
||||
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list:" << defDeviceName
|
||||
<< "Setting Default to: " << devices.first().deviceName();
|
||||
defaultDesktopDevice = HifiAudioDeviceInfo(devices.first(), true, mode, HifiAudioDeviceInfo::desktop);
|
||||
newDevices.push_front(HifiAudioDeviceInfo(devices.first(), true, mode, HifiAudioDeviceInfo::desktop));
|
||||
} else {
|
||||
//current audio list is empty for some reason.
|
||||
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list no alternative selection available";
|
||||
|
|
Loading…
Reference in a new issue