Displaying 1 result from an estimated 1 matches for "write_sampl".
Did you mean:
write_impl
2013 May 09
2
opus file trimming/clipping
...cing
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,
and the resulting file is less than half the size of the original file.
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20130508/ac753dcf/att...