mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 01:23:55 +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) {
|
if (devices.size() > 0) {
|
||||||
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list:" << defDeviceName
|
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list:" << defDeviceName
|
||||||
<< "Setting Default to: " << devices.first().deviceName();
|
<< "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 {
|
} else {
|
||||||
//current audio list is empty for some reason.
|
//current audio list is empty for some reason.
|
||||||
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list no alternative selection available";
|
qCDebug(audioclient) << __FUNCTION__ << "Default device not found in list no alternative selection available";
|
||||||
|
|
Loading…
Reference in a new issue