Displaying 1 result from an estimated 1 matches for "pcm_length".
Did you mean:
cmd_length
2013 May 09
2
opus file trimming/clipping
...and how do I then specify where the
decoding is supposed to stop?
I will describe the steps I've tried so far (maybe not the best approach):
I have tried modifying the opusfile-1.0.2/examples/seeking_example.c as a
base, replacing
pcm_offset=(ogg_int64_t)(rand()/(double)RAND_MAX*pcm_length);
with
pcm_offset=(ogg_int64_t)((double)pcm_length/2.0);
presumably to start the decoding at the middle of the file by:
ret=op_pcm_seek(of,pcm_offset);
However, when I save the file using the
write_samples(buffer,nsamples,nchannels) function, the file is unreadable,
an...