mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
fixed wrong device in if block
This commit is contained in:
parent
ecca898db8
commit
be2fff13d2
1 changed files with 4 additions and 3 deletions
|
@ -122,7 +122,7 @@ void AudioClient::checkDevices() {
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
//is the current device the default selected device?
|
//is the current device the default?, if so has the underlying QAudioDeviceInfo changed from the os call
|
||||||
if (_inputDeviceInfo.isDefault() && _inputDeviceInfo == _defaultInputDevice) {
|
if (_inputDeviceInfo.isDefault() && _inputDeviceInfo == _defaultInputDevice) {
|
||||||
auto defInput = defaultAudioDeviceForMode(QAudio::AudioInput);
|
auto defInput = defaultAudioDeviceForMode(QAudio::AudioInput);
|
||||||
|
|
||||||
|
@ -135,7 +135,8 @@ void AudioClient::checkDevices() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_outputDeviceInfo.isDefault() && _inputDeviceInfo == _defaultInputDevice) {
|
//is the current device the default?, if so has the underlying QAudioDeviceInfo changed from the os call
|
||||||
|
if (_outputDeviceInfo.isDefault() && _outputDeviceInfo == _defaultOutputDevice) {
|
||||||
auto defOutput = defaultAudioDeviceForMode(QAudio::AudioOutput);
|
auto defOutput = defaultAudioDeviceForMode(QAudio::AudioOutput);
|
||||||
|
|
||||||
if (_defaultOutputDevice.getDevice() != defOutput.getDevice()) {
|
if (_defaultOutputDevice.getDevice() != defOutput.getDevice()) {
|
||||||
|
|
Loading…
Reference in a new issue