mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 01:18:17 +02:00
buffering
git-svn-id: svn://elaine/murooma/trunk@29 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
d79f25ef5e
commit
e77afd841f
1 changed files with 3 additions and 3 deletions
|
@ -186,11 +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 + 100)
|
||||
if (age > bufferMs + 50)
|
||||
delete chunk;
|
||||
else if (age < bufferMs - 100)
|
||||
else if (age < bufferMs - 50)
|
||||
{
|
||||
usleep(((bufferMs - age) + 100) * 1000);
|
||||
usleep(((bufferMs - age) + 50) * 1000);
|
||||
delete chunk;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue