mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
Throw warning if audio devices list is empty instead of debug message.
This commit is contained in:
parent
842a78e6bc
commit
88a0d6217e
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
||||||
//
|
//
|
||||||
// AudioClient.cpp
|
// AudioClient.cpp
|
||||||
// interface/src
|
// libraries/audio-client/src
|
||||||
//
|
//
|
||||||
// Created by Stephen Birarda on 1/22/13.
|
// Created by Stephen Birarda on 1/22/13.
|
||||||
// Copyright 2013 High Fidelity, Inc.
|
// Copyright 2013 High Fidelity, Inc.
|
||||||
// Copyright 2021 Vircadia contributors.
|
// Copyright 2021 Vircadia contributors.
|
||||||
|
// Copyright 2023 Overte e.V.
|
||||||
//
|
//
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "AudioClient.h"
|
#include "AudioClient.h"
|
||||||
|
@ -118,7 +120,7 @@ QList<HifiAudioDeviceInfo> getAvailableDevices(QAudio::Mode mode, const QString&
|
||||||
newDevices.push_front(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";
|
qCWarning(audioclient) << __FUNCTION__ << "Default device not found in list and no alternative selection available";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newDevices.push_front(defaultDesktopDevice);
|
newDevices.push_front(defaultDesktopDevice);
|
||||||
|
|
Loading…
Reference in a new issue