API change: optional resynthesis
The main encode call no longer takes a pointer for the optional resynthesis. It's now done with a call to celt_encode_resynthesis().
This commit is contained in:
parent
e949b72049
commit
d56c610cac
5 changed files with 67 additions and 21 deletions
|
@ -133,7 +133,7 @@ int main(int argc, char *argv[])
|
|||
err = fread(in, sizeof(short), frame_size*channels, fin);
|
||||
if (feof(fin))
|
||||
break;
|
||||
len = celt_encode(enc, in, in, frame_size, data, bytes_per_packet);
|
||||
len = celt_encode_resynthesis(enc, in, in, frame_size, data, bytes_per_packet);
|
||||
if (len <= 0)
|
||||
{
|
||||
fprintf (stderr, "celt_encode() returned %d\n", len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue