mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-19 17:37:45 +02:00
working again
git-svn-id: svn://elaine/murooma/trunk@68 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
5c4412562a
commit
224ee53a5a
3 changed files with 70 additions and 14 deletions
|
@ -181,11 +181,11 @@ int main (int argc, char *argv[])
|
|||
zmq::message_t update;
|
||||
subscriber.recv(&update);
|
||||
|
||||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
std::cerr << "New chunk: " << chunkTime(*chunk) << "\t" << timeToStr(now) << "\t" << getAge(*chunk) << "\n";
|
||||
// timeval now;
|
||||
// gettimeofday(&now, NULL);
|
||||
// memcpy(chunk, update.data(), sizeof(Chunk));
|
||||
chunk = (Chunk*)(update.data());
|
||||
// std::cerr << "New chunk: " << chunkTime(*chunk) << "\t" << timeToStr(now) << "\t" << getAge(*chunk) << "\n";
|
||||
stream->addChunk(chunk);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue