From a069a6be826d97d4d40fb92df40560765c7467c0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Sat, 9 Aug 2014 10:16:48 +0000 Subject: [PATCH] test git-svn-id: svn://elaine/murooma/trunk@163 d8a302eb-03bc-478d-80e4-98257eca68ef --- stream.cpp | 4 +++- stream.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stream.cpp b/stream.cpp index 50f7fa94..1225aa64 100644 --- a/stream.cpp +++ b/stream.cpp @@ -141,9 +141,11 @@ void Stream::getPlayerChunk(short* outputBuffer, double outputBufferDacTime, uns int age = Chunk::getAge(getNextPlayerChunk(outputBuffer, framesPerBuffer, correction)) - bufferMs;// + outputBufferDacTime*1000; -// cout << age << "\t"; + long currentTick = getTickCount(); + cout << age << "\t" << msBuffer << "\t" << currentTick - lastTick << "\n"; if (outputBufferDacTime < 1) age += outputBufferDacTime*1000; + lastTick = currentTick; // cout << age << "\t" << outputBufferDacTime*1000 << "\n"; diff --git a/stream.h b/stream.h index 30963d61..ddcd4ab4 100644 --- a/stream.h +++ b/stream.h @@ -27,6 +27,7 @@ private: void updateBuffers(int age); void resetBuffers(); + long lastTick; float sleep; // int correction; Queue> chunks;