mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 17:04:10 +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();
|
||||
|
||||
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) {
|
||||
switchAudioDevice(QAudio::AudioInput, VOICE_COMMUNICATION);
|
||||
switchAudioDevice(QAudio::AudioInput, VOICE_COMMUNICATION, false);
|
||||
}
|
||||
}
|
||||
_isHeadsetPluggedIn = pluggedIn;
|
||||
|
|
Loading…
Reference in a new issue