mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-22 10:57:39 +02:00
chunks have shorts
git-svn-id: svn://elaine/murooma/trunk@55 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
7e33e7ad05
commit
332bacd4ee
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ int main () {
|
||||||
{
|
{
|
||||||
c[0] = cin.get();
|
c[0] = cin.get();
|
||||||
c[1] = cin.get();
|
c[1] = cin.get();
|
||||||
chunk.payload[idx++] = c[0] + (c[1] << 8);
|
chunk.payload[idx++] = (int)c[0] + ((int)c[1] << 8);
|
||||||
if (idx == WIRE_CHUNK_SIZE)
|
if (idx == WIRE_CHUNK_SIZE)
|
||||||
{
|
{
|
||||||
timeval now;
|
timeval now;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue