From 146c856f0304f9b55be41cfbfb8b5716738b48f7 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Sun, 27 Jul 2014 13:50:02 +0000 Subject: [PATCH] server tick git-svn-id: svn://elaine/murooma/trunk@109 d8a302eb-03bc-478d-80e4-98257eca68ef --- server.cpp | 6 +++--- stream.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server.cpp b/server.cpp index b45f4a43..23830d80 100644 --- a/server.cpp +++ b/server.cpp @@ -33,9 +33,9 @@ int main () { timeval tvChunk; gettimeofday(&tvChunk, NULL); long nextTick = getTickCount(); - while (cin.good()) + while (!cin.bad()) { - for (size_t n=0; (n currentTick) diff --git a/stream.cpp b/stream.cpp index 17f5cdec..43707a1c 100644 --- a/stream.cpp +++ b/stream.cpp @@ -149,10 +149,12 @@ void Stream::getChunk(short* outputBuffer, double outputBufferDacTime, unsigned } else { + for (size_t i=0; isize() << "\t" << outputBufferDacTime*1000 << "\n";