buffer stuff

git-svn-id: svn://elaine/murooma/trunk@105 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-27 11:58:18 +00:00
parent c1a36fed13
commit 82a9e1214f

View file

@ -168,7 +168,16 @@ void Stream::getChunk(short* outputBuffer, double outputBufferDacTime, unsigned
pBuffer->clear();
pShortBuffer->clear();
}
}
}
else if (pShortBuffer->full() && (abs(shortMedian) <= PLAYER_CHUNK_MS))
{
if (abs(shortMedian) > 3)
{
correction = -shortMedian;
pBuffer->clear();
pShortBuffer->clear();
}
}
timeval tv = getNextPlayerChunk(outputBuffer, correction);
int age = getAge(tv) - bufferMs;// + outputBufferDacTime*1000;