mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-16 18:46:15 +02:00
xxx
git-svn-id: svn://elaine/murooma/trunk@27 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
7c622fb2c2
commit
09346c274e
1 changed files with 4 additions and 2 deletions
|
@ -186,9 +186,11 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
|
|||
mutex.unlock();
|
||||
age = getAge(*chunk) + timeInfo->outputBufferDacTime*1000;
|
||||
std::cerr << "age: " << getAge(*chunk) << "\t" << age << "\n";
|
||||
if (age > bufferMs)
|
||||
if (age > bufferMs + 100)
|
||||
delete chunk;
|
||||
else
|
||||
else if (age < bufferMs)
|
||||
usleep(((bufferMs - age)) * 1000);
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue