git-svn-id: svn://elaine/murooma/trunk@136 d8a302eb-03bc-478d-80e4-98257eca68ef

This commit is contained in:
(no author) 2014-08-04 07:12:07 +00:00
parent 130d7c5643
commit a11a3e4959
3 changed files with 17 additions and 4 deletions

View file

@ -22,9 +22,9 @@ void Stream::setBufferLen(size_t bufferLenMs)
void Stream::addChunk(Chunk* chunk)
{
Chunk* c = new Chunk(*chunk);
// Chunk* c = new Chunk(*chunk);
// mutex.lock();
chunks.push_back(c);
chunks.push_back(chunk);
// mutex.unlock();
cv.notify_all();
}
@ -56,7 +56,7 @@ time_point_ms Stream::getNextPlayerChunk(short* outputBuffer, int correction)
{
Chunk* chunk = getNextChunk();
time_point_ms tp = chunk->timePoint();
/*
if (correction != 0)
{
float idx(chunk->idx);