mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 22:09:06 +02:00
android build fix
This commit is contained in:
parent
8dc13ec242
commit
f1f67f1996
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ HifiAudioDeviceInfo defaultAudioDeviceForMode(QAudio::Mode mode) {
|
|||
bool aecEnabled = enableAEC.get();
|
||||
auto audioClient = DependencyManager::get<AudioClient>();
|
||||
bool headsetOn = audioClient ? audioClient->isHeadsetPluggedIn() : false;
|
||||
for (QAudioDeviceInfo inputDevice : devices) {
|
||||
for (QAudioDeviceInfo inputDevice : QAudioDeviceInfo::availableDevices(mode)) {
|
||||
if (((headsetOn || !aecEnabled) && inputDevice.deviceName() == VOICE_RECOGNITION) ||
|
||||
((!headsetOn && aecEnabled) && inputDevice.deviceName() == VOICE_COMMUNICATION)) {
|
||||
return HifiAudioDeviceInfo(inputDevice, false, QAudio::AudioInput);
|
||||
|
|
Loading…
Reference in a new issue