mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 20:43:39 +02:00
Merge pull request #16487 from amerhifi/resetAudio
case DEV-2709: reset QAudioDevInfo on switch
This commit is contained in:
commit
0dd764cd29
1 changed files with 4 additions and 0 deletions
|
@ -1835,6 +1835,8 @@ bool AudioClient::switchInputToAudioDevice(const HifiAudioDeviceInfo inputDevice
|
|||
_audioInput->deleteLater();
|
||||
_audioInput = NULL;
|
||||
_numInputCallbackBytes = 0;
|
||||
|
||||
_inputDeviceInfo.setDevice(QAudioDeviceInfo());
|
||||
}
|
||||
|
||||
if (_dummyAudioInput) {
|
||||
|
@ -2081,6 +2083,8 @@ bool AudioClient::switchOutputToAudioDevice(const HifiAudioDeviceInfo outputDevi
|
|||
|
||||
delete[] _localOutputMixBuffer;
|
||||
_localOutputMixBuffer = NULL;
|
||||
|
||||
_outputDeviceInfo.setDevice(QAudioDeviceInfo());
|
||||
}
|
||||
|
||||
// cleanup any resamplers
|
||||
|
|
Loading…
Reference in a new issue