mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:50:42 +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() {
|
void AudioClient::checkInputTimeout() {
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) {
|
if (_audioInput && _inputReadsSinceLastCheck < MIN_READS_TO_CONSIDER_INPUT_ALIVE) {
|
||||||
|
qDebug() << "[CHOPPY-AUDIO] " << _inputReadsSinceLastCheck << " < MIN_READS_TO_CONSIDER_INPUT_ALIVE";
|
||||||
_audioInput->stop();
|
_audioInput->stop();
|
||||||
} else {
|
} else {
|
||||||
_inputReadsSinceLastCheck = 0;
|
_inputReadsSinceLastCheck = 0;
|
||||||
|
|
|
@ -138,6 +138,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
||||||
// handle this packet based on its arrival status.
|
// handle this packet based on its arrival status.
|
||||||
switch (arrivalInfo._status) {
|
switch (arrivalInfo._status) {
|
||||||
case SequenceNumberStats::Unreasonable: {
|
case SequenceNumberStats::Unreasonable: {
|
||||||
|
qDebug() << "[CHOPPY-AUDIO] Unreasonable lostAudioData";
|
||||||
lostAudioData(1);
|
lostAudioData(1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -147,6 +148,7 @@ int InboundAudioStream::parseData(ReceivedMessage& message) {
|
||||||
// also result in allowing the codec to interpolate lost data. Then
|
// also result in allowing the codec to interpolate lost data. Then
|
||||||
// fall through to the "on time" logic to actually handle this packet
|
// fall through to the "on time" logic to actually handle this packet
|
||||||
int packetsDropped = arrivalInfo._seqDiffFromExpected;
|
int packetsDropped = arrivalInfo._seqDiffFromExpected;
|
||||||
|
qDebug() << "[CHOPPY-AUDIO] Early lostAudioData " << packetsDropped;
|
||||||
lostAudioData(packetsDropped);
|
lostAudioData(packetsDropped);
|
||||||
|
|
||||||
// fall through to OnTime case
|
// 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,
|
// 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
|
// 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.
|
// allow the codec to interpolate missing data and produce a fade to silence.
|
||||||
|
qDebug() << "[CHOPPY-AUDIO] !pcm lostAudioData 1";
|
||||||
lostAudioData(1);
|
lostAudioData(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue