mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-21 02:17:39 +02:00
chunks have shorts
git-svn-id: svn://elaine/murooma/trunk@56 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
332bacd4ee
commit
f72c213407
3 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ int main () {
|
|||
{
|
||||
c[0] = cin.get();
|
||||
c[1] = cin.get();
|
||||
chunk.payload[idx++] = (int)c[0] + ((int)c[1] << 8);
|
||||
chunk.payload[idx++] = (int)c[0] + ((int)c[1] * 256);
|
||||
if (idx == WIRE_CHUNK_SIZE)
|
||||
{
|
||||
timeval now;
|
||||
|
@ -63,7 +63,7 @@ int main () {
|
|||
// snprintf ((char *) message.data(), size, "%05d %d", zipcode, c);
|
||||
// message.data()[0] = c;
|
||||
publisher.send(message);
|
||||
addMs(ts, WIRE_CHUNK_MS);
|
||||
/// addMs(ts, WIRE_CHUNK_MS);
|
||||
idx = 0;
|
||||
// msg[0] = '0';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue