mirror of
https://github.com/lubosz/overte.git
synced 2025-04-13 21:06:32 +02:00
Add logs to debug. Revert later
This commit is contained in:
parent
00e3de4e0a
commit
3c49e7783c
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue