mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-21 04:56:13 +02:00
ChunkTemplate
git-svn-id: svn://elaine/murooma/trunk@45 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
7ef8fd3f4a
commit
8699eb8bc2
3 changed files with 27 additions and 19 deletions
|
@ -42,7 +42,7 @@ int main () {
|
|||
{
|
||||
// read(fd, &msg[0], size);
|
||||
chunk.payload[idx++] = c;
|
||||
if (idx == CHUNK_SIZE)
|
||||
if (idx == WIRE_CHUNK_SIZE)
|
||||
{
|
||||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
|
@ -62,7 +62,7 @@ int main () {
|
|||
// snprintf ((char *) message.data(), size, "%05d %d", zipcode, c);
|
||||
// message.data()[0] = c;
|
||||
publisher.send(message);
|
||||
addMs(ts, CHUNK_MS);
|
||||
addMs(ts, WIRE_CHUNK_MS);
|
||||
idx = 0;
|
||||
// msg[0] = '0';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue