buffer size

git-svn-id: svn://elaine/murooma/trunk@21 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-06-27 17:32:59 +00:00
parent 1087df7370
commit 2aacd08008

View file

@ -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;
}
}