Browse Source

Add header offset

master
Jeroen Vreeken 4 years ago
parent
commit
27180f4c83
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      dml_stream_client_codec2.c

+ 4
- 4
dml_stream_client_codec2.c View File

@ -181,8 +181,8 @@ static int data_cb(void *arg, void *data, size_t datasize)
uint16_t s;
} d2s;
for (b = 0; b < nr; b++) {
d2s.d8[0] = data8[b*2+0];
d2s.d8[1] = data8[b*2+1];
d2s.d8[0] = data8[8+b*2+0];
d2s.d8[1] = data8[8+b*2+1];
samples[b] = le16toh(d2s.s);
}
}
@ -193,8 +193,8 @@ static int data_cb(void *arg, void *data, size_t datasize)
uint16_t s;
} d2s;
for (b = 0; b < nr; b++) {
d2s.d8[0] = data8[b*2+0];
d2s.d8[1] = data8[b*2+1];
d2s.d8[0] = data8[8+b*2+0];
d2s.d8[1] = data8[8+b*2+1];
samples[b] = be16toh(d2s.s);
}
}


Loading…
Cancel
Save