diff --git a/libraries/audio-client/src/AudioClient.cpp b/libraries/audio-client/src/AudioClient.cpp index c57360b09f..fa44367d47 100644 --- a/libraries/audio-client/src/AudioClient.cpp +++ b/libraries/audio-client/src/AudioClient.cpp @@ -1639,6 +1639,7 @@ void AudioClient::audioInputStateChanged(QAudio::State state) { void AudioClient::checkInputTimeout() { #if defined(Q_OS_ANDROID) if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) { + qDebug() << "[CHOPPY-AUDIO] " << _inputReadsSinceLastCheck << " < MIN_READS_TO_CONSIDER_INPUT_ALIVE"; _audioInput->stop(); } else { _inputReadsSinceLastCheck = 0; diff --git a/libraries/audio/src/InboundAudioStream.cpp b/libraries/audio/src/InboundAudioStream.cpp index 7645a674e4..cf4ad25f1b 100644 --- a/libraries/audio/src/InboundAudioStream.cpp +++ b/libraries/audio/src/InboundAudioStream.cpp @@ -138,6 +138,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) { // handle this packet based on its arrival status. switch (arrivalInfo._status) { case SequenceNumberStats::Unreasonable: { + qDebug() << "[CHOPPY-AUDIO] Unreasonable lostAudioData"; lostAudioData(1); break; } @@ -147,6 +148,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) { // also result in allowing the codec to interpolate lost data. Then // fall through to the "on time" logic to actually handle this packet int packetsDropped = arrivalInfo._seqDiffFromExpected; + qDebug() << "[CHOPPY-AUDIO] Early lostAudioData " << packetsDropped; lostAudioData(packetsDropped); // fall through to OnTime case @@ -181,6 +183,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) { // Since the data in the stream is using a codec that we aren't prepared for, // we need to let the codec know that we don't have data for it, this will // allow the codec to interpolate missing data and produce a fade to silence. + qDebug() << "[CHOPPY-AUDIO] !pcm lostAudioData 1"; lostAudioData(1); }