stream notifies about new chunks

This commit is contained in:
badaix 2015-08-18 22:01:08 +02:00
parent 74dab4ca10
commit 446f2a2f34
4 changed files with 25 additions and 3 deletions

View file

@ -201,13 +201,15 @@ void Player::worker()
else
{
logO << "Failed to get chunk\n";
usleep(100*1000);
while (active_ && !stream_->waitForChunk(100))
logD << "Waiting for chunk\n";
}
}
}
vector<PcmDevice> Player::pcm_list(void) {
vector<PcmDevice> Player::pcm_list(void)
{
void **hints, **n;
char *name, *descr, *io;
vector<PcmDevice> result;