mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
Remove dead code and extra logs
This commit is contained in:
parent
5177a76b75
commit
a91118027d
1 changed files with 0 additions and 5 deletions
|
@ -1598,7 +1598,6 @@ void AudioClient::audioInputStateChanged(QAudio::State state) {
|
||||||
if (_shouldRestartInputSetup) {
|
if (_shouldRestartInputSetup) {
|
||||||
Lock lock(_deviceMutex);
|
Lock lock(_deviceMutex);
|
||||||
_inputDevice = _audioInput->start();
|
_inputDevice = _audioInput->start();
|
||||||
qCDebug(audioclient) << "[AUDIO-WA] Restarted _audioInput";
|
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
if (_inputDevice) {
|
if (_inputDevice) {
|
||||||
connect(_inputDevice, SIGNAL(readyRead()), this, SLOT(handleMicAudioInput()));
|
connect(_inputDevice, SIGNAL(readyRead()), this, SLOT(handleMicAudioInput()));
|
||||||
|
@ -1614,12 +1613,8 @@ void AudioClient::audioInputStateChanged(QAudio::State state) {
|
||||||
|
|
||||||
void AudioClient::checkInputTimeout() {
|
void AudioClient::checkInputTimeout() {
|
||||||
if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) {
|
if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) {
|
||||||
qCDebug(audioclient) << "[AUDIO-WA] No input in last second _inputReadsSinceLastCheck" << _inputReadsSinceLastCheck;
|
|
||||||
// this is a weird issue happening at low level in android
|
|
||||||
// it simply stops sending us mic data
|
|
||||||
_audioInput->stop();
|
_audioInput->stop();
|
||||||
} else {
|
} else {
|
||||||
//qCDebug(audioclient) << "[AUDIO-WA] ok _inputReadsSinceLastCheck " << _inputReadsSinceLastCheck;
|
|
||||||
_inputReadsSinceLastCheck = 0;
|
_inputReadsSinceLastCheck = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue