mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:57:00 +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->deleteLater();
|
||||||
_audioInput = NULL;
|
_audioInput = NULL;
|
||||||
_numInputCallbackBytes = 0;
|
_numInputCallbackBytes = 0;
|
||||||
|
|
||||||
|
_inputDeviceInfo.setDevice(QAudioDeviceInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_dummyAudioInput) {
|
if (_dummyAudioInput) {
|
||||||
|
@ -2081,6 +2083,8 @@ bool AudioClient::switchOutputToAudioDevice(const HifiAudioDeviceInfo outputDevi
|
||||||
|
|
||||||
delete[] _localOutputMixBuffer;
|
delete[] _localOutputMixBuffer;
|
||||||
_localOutputMixBuffer = NULL;
|
_localOutputMixBuffer = NULL;
|
||||||
|
|
||||||
|
_outputDeviceInfo.setDevice(QAudioDeviceInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanup any resamplers
|
// cleanup any resamplers
|
||||||
|
|
Loading…
Reference in a new issue