From 8244ce81d6854c48fc77fc2029bfdd7e7b73ac6f Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Tue, 1 Jul 2014 17:12:31 +0000 Subject: [PATCH] logging git-svn-id: svn://elaine/murooma/trunk@50 d8a302eb-03bc-478d-80e4-98257eca68ef --- client.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index c82ef104..844a5c0a 100644 --- a/client.cpp +++ b/client.cpp @@ -156,7 +156,6 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer, shortBuffer.add(age); int median = buffer.median(); int shortMedian = shortBuffer.median(); - std::cerr << "age: " << getAge(*chunk) << "\t" << age << "\t" << shortMedian << "\t" << median << "\t" << buffer.size() << "\t" << timeInfo->outputBufferDacTime*1000 << "\n"; if (skip == 0) { @@ -167,6 +166,12 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer, else if (buffer.full() && ((median > 15) || (median < -15))) skip = median / PLAYER_CHUNK_MS; } + + if (skip != 0) + { + std::cerr << "age: " << getAge(*chunk) << "\t" << age << "\t" << shortMedian << "\t" << median << "\t" << buffer.size() << "\t" << timeInfo->outputBufferDacTime*1000 << "\n"; + } + // bool silence = (age < -500) || (shortBuffer.full() && (shortMedian < -100)) || (buffer.full() && (median < -15)); if (skip > 0) {