diff options
Diffstat (limited to 'doc/sampledec.c')
-rw-r--r-- | doc/sampledec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/sampledec.c b/doc/sampledec.c index 2878c47..8e89e12 100644 --- a/doc/sampledec.c +++ b/doc/sampledec.c @@ -33,13 +33,13 @@ int main(int argc, char **argv) speex_bits_init(&bits); while (1) { - /*Read the size encoded by sampleenc, this part will likely be + /*Read the size encoded by sampleenc, this part will likely be different in your application*/ fread(&nbBytes, sizeof(int), 1, stdin); fprintf (stderr, "nbBytes: %d\n", nbBytes); if (feof(stdin)) break; - + /*Read the "packet" encoded by sampleenc*/ fread(cbits, 1, nbBytes, stdin); /*Copy the data into the bit-stream struct*/ @@ -55,7 +55,7 @@ int main(int argc, char **argv) /*Write the decoded audio to file*/ fwrite(out, sizeof(short), FRAME_SIZE, fout); } - + /*Destroy the decoder state*/ speex_decoder_destroy(state); /*Destroy the bit-stream truct*/ |