From cc2f2b2576331000297cd58dccec0622b42edd6d Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 18 Nov 2021 12:20:36 +0000 Subject: [PATCH] Remove some extra logging from audio --- audiohandler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audiohandler.cpp b/audiohandler.cpp index 4dd623a..d0381fa 100644 --- a/audiohandler.cpp +++ b/audiohandler.cpp @@ -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; } }