mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:36:26 +02:00
android build fix
This commit is contained in:
parent
179f5e0873
commit
d7996c77f4
1 changed files with 2 additions and 2 deletions
|
@ -2005,9 +2005,9 @@ void AudioClient::setHeadsetPluggedIn(bool pluggedIn) {
|
||||||
bool aecEnabled = enableAEC.get();
|
bool aecEnabled = enableAEC.get();
|
||||||
|
|
||||||
if ((pluggedIn || !aecEnabled) && _inputDeviceInfo.deviceName() != VOICE_RECOGNITION) {
|
if ((pluggedIn || !aecEnabled) && _inputDeviceInfo.deviceName() != VOICE_RECOGNITION) {
|
||||||
switchAudioDevice(QAudio::AudioInput, VOICE_RECOGNITION);
|
switchAudioDevice(QAudio::AudioInput, VOICE_RECOGNITION, false);
|
||||||
} else if (!pluggedIn && aecEnabled && _inputDeviceInfo.deviceName() != VOICE_COMMUNICATION) {
|
} else if (!pluggedIn && aecEnabled && _inputDeviceInfo.deviceName() != VOICE_COMMUNICATION) {
|
||||||
switchAudioDevice(QAudio::AudioInput, VOICE_COMMUNICATION);
|
switchAudioDevice(QAudio::AudioInput, VOICE_COMMUNICATION, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_isHeadsetPluggedIn = pluggedIn;
|
_isHeadsetPluggedIn = pluggedIn;
|
||||||
|
|
Loading…
Reference in a new issue