Remove some extra logging from audio

merge-requests/7/head
Phil Taylor 2021-11-18 12:20:36 +00:00
rodzic 42675ae770
commit cc2f2b2576
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -448,7 +448,7 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
audioPacket packet;
if (!ringBuf->try_read(packet))
{
qDebug() << "No more data available but buffer is not full! sentlen:" << sentlen << " nBytes:" << nBytes ;
qDebug(logAudio()) << "No more data available but buffer is not full! sentlen:" << sentlen << " nBytes:" << nBytes ;
break;
}
currentLatency = packet.time.msecsTo(QTime::currentTime());
@ -470,7 +470,7 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
}
if (currentLatency > setup.latency) {
qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Packet " << hex << packet.seq <<
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Packet " << hex << packet.seq <<
" arrived too late (increase output latency!) " <<
dec << packet.time.msecsTo(QTime::currentTime()) << "ms";
while (currentLatency > setup.latency/2) {
@ -493,12 +493,14 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
break;
}
/*
if (packet.seq <= lastSeq) {
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Duplicate/early audio packet: " << hex << lastSeq << " got " << hex << packet.seq;
}
else if (packet.seq != lastSeq + 1) {
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Missing audio packet(s) from: " << hex << lastSeq + 1 << " to " << hex << packet.seq - 1;
}
*/
lastSeq = packet.seq;
}
}