git-svn-id: svn://elaine/murooma/trunk@133 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-08-03 13:34:36 +00:00
parent 9223741af3
commit 042000c8cc

View file

@ -151,12 +151,9 @@ void Stream::getChunk(short* outputBuffer, double outputBufferDacTime, unsigned
while (true)// (int i=0; i<(int)(round((float)sleep / (float)PLAYER_CHUNK_MS)) + 1; ++i)
{
// std::cerr << "Sleep: " << sleep << "\n";
int age = getAge(getNextPlayerChunk(NULL)) - bufferMs;
if (age < PLAYER_CHUNK_MS)
{
getNextPlayerChunk(outputBuffer);
int age = getAge(getNextPlayerChunk(outputBuffer)) - bufferMs;
if (age < PLAYER_CHUNK_MS / 2)
break;
}
// std::cerr << getAge(getNextPlayerChunk(outputBuffer)) - bufferMs << "\t";
// usleep(10);
}