mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-03 04:06:31 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@133 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
9223741af3
commit
042000c8cc
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue