mirror of
https://github.com/JulianGro/overte.git
synced 2025-06-02 11:20:21 +02:00
Speculative fix for crash in AudioClient
This commit is contained in:
parent
7ab76984ad
commit
350977f03e
1 changed files with 4 additions and 0 deletions
|
@ -867,6 +867,10 @@ void AudioClient::handleLocalEchoAndReverb(QByteArray& inputByteArray) {
|
||||||
|
|
||||||
void AudioClient::handleAudioInput() {
|
void AudioClient::handleAudioInput() {
|
||||||
|
|
||||||
|
if (!_inputDevice) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// input samples required to produce exactly NETWORK_FRAME_SAMPLES of output
|
// input samples required to produce exactly NETWORK_FRAME_SAMPLES of output
|
||||||
const int inputSamplesRequired = (_inputToNetworkResampler ?
|
const int inputSamplesRequired = (_inputToNetworkResampler ?
|
||||||
_inputToNetworkResampler->getMinInput(AudioConstants::NETWORK_FRAME_SAMPLES_PER_CHANNEL) :
|
_inputToNetworkResampler->getMinInput(AudioConstants::NETWORK_FRAME_SAMPLES_PER_CHANNEL) :
|
||||||
|
|
Loading…
Reference in a new issue