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; } }