Skip to content
Snippets Groups Projects
Commit 7dfb7b1e authored by Mans Rullgard's avatar Mans Rullgard
Browse files

mqadec: update to new bluos api

parent f8e6bdf5
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ static int get_samples(int frame_size, uint8_t **samples, int eof, int *end)
*samples = &buf[buf_pos];
return size;
return size / frame_size;
}
static void consume(int len)
......@@ -92,12 +92,10 @@ static size_t write_samples(void *p, void *buf, size_t len)
int32_t *s = buf;
int i;
len &= ~7;
for (i = 0; i < len / 4; i++)
for (i = 0; i < len * 2; i++)
s[i] <<= 8;
return sf_writef_int(outfile, s, len / 8) * 8;
return sf_writef_int(outfile, s, len);
}
static int write_size(void *p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment