kopia lustrzana https://gitlab.com/eliggett/wfview
Remove some extra logging from audio
rodzic
42675ae770
commit
cc2f2b2576
|
@ -448,7 +448,7 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
|
||||||
audioPacket packet;
|
audioPacket packet;
|
||||||
if (!ringBuf->try_read(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;
|
break;
|
||||||
}
|
}
|
||||||
currentLatency = packet.time.msecsTo(QTime::currentTime());
|
currentLatency = packet.time.msecsTo(QTime::currentTime());
|
||||||
|
@ -470,7 +470,7 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentLatency > setup.latency) {
|
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!) " <<
|
" arrived too late (increase output latency!) " <<
|
||||||
dec << packet.time.msecsTo(QTime::currentTime()) << "ms";
|
dec << packet.time.msecsTo(QTime::currentTime()) << "ms";
|
||||||
while (currentLatency > setup.latency/2) {
|
while (currentLatency > setup.latency/2) {
|
||||||
|
@ -493,12 +493,14 @@ qint64 audioHandler::readData(char* buffer, qint64 nBytes)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
if (packet.seq <= lastSeq) {
|
if (packet.seq <= lastSeq) {
|
||||||
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Duplicate/early audio packet: " << hex << lastSeq << " got " << hex << packet.seq;
|
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Duplicate/early audio packet: " << hex << lastSeq << " got " << hex << packet.seq;
|
||||||
}
|
}
|
||||||
else if (packet.seq != lastSeq + 1) {
|
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;
|
qDebug(logAudio()) << (setup.isinput ? "Input" : "Output") << "Missing audio packet(s) from: " << hex << lastSeq + 1 << " to " << hex << packet.seq - 1;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
lastSeq = packet.seq;
|
lastSeq = packet.seq;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue