Commit 0c79f09e authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

debug code

parent c57ac95f
......@@ -43,6 +43,8 @@ int main(int argc, char *argv[])
short in[FRAME_SIZE];
CELTEncoder *enc;
CELTDecoder *dec;
int len;
char *data;
inFile = argv[1];
fin = fopen(inFile, "rb");
......@@ -54,14 +56,16 @@ int main(int argc, char *argv[])
while (!feof(fin))
int len;
char *data;
fread(in, sizeof(short), FRAME_SIZE, fin);
celt_encode(enc, in);
data = celt_encoder_get_bytes(enc, &len);
//printf ("%d\n", len);
celt_decode(dec, data, len, in);
fwrite(in, sizeof(short), FRAME_SIZE, fout);
//data = celt_encoder_get_bytes(enc, &len);
//printf ("%d bytes total\n", len);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment