mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 17:03:11 +02:00
adding qaudio reset on switch.
This commit is contained in:
parent
d7fbd1e2d4
commit
3939c7e6fd
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