diff --git a/stream.cpp b/stream.cpp index b769a1e1..dc45d697 100644 --- a/stream.cpp +++ b/stream.cpp @@ -181,6 +181,8 @@ void Stream::getChunk(short* outputBuffer, double outputBufferDacTime, unsigned timeval tv = getNextPlayerChunk(outputBuffer, correction); int age = getAge(tv) - bufferMs;// + outputBufferDacTime*1000; + if (outputBufferDacTime < 1) + age += outputBufferDacTime*1000; pBuffer->add(age); pShortBuffer->add(age); // std::cerr << "Chunk: " << age << "\t" << outputBufferDacTime*1000 << "\n";