mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-05 04:11:50 +02:00
buffer size
git-svn-id: svn://elaine/murooma/trunk@21 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
1087df7370
commit
2aacd08008
1 changed files with 12 additions and 9 deletions
|
@ -95,6 +95,8 @@ void player()
|
|||
if (playing)
|
||||
{
|
||||
int age = getAge(*chunk) - bufferMs;
|
||||
if (age < 0)
|
||||
{
|
||||
while (age < 0)
|
||||
{
|
||||
usleep((-age) * 1000/ 2);
|
||||
|
@ -110,6 +112,7 @@ void player()
|
|||
}
|
||||
std::cout << std::flush;
|
||||
}
|
||||
}
|
||||
delete chunk;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue