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