<div dir="ltr"><div><div>Hi Ralph,<br><br></div><div>I am using Http Progressive download technique to download the opus audio in chunks. So I am not sure if the Opusfile seek API will work in this case. Please correct me if I am wrong.<br><br></div><div>Is there anyway to get or calculate the byte offset corresponding to the PCM time position? Then I can ask the server to serve the file from that byte onwards.<br></div><div><br></div>Regards,<br></div>Deepak.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 8, 2016 at 11:33 PM, Ralph Giles <span dir="ltr"><<a href="mailto:giles@thaumas.net" target="_blank">giles@thaumas.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2016-11-08 1:59 AM, Philipp Schafft wrote:<br>
<br>
> Some notes:<br>
>       * libvorbisfile has a nice implementation of that, it also takes<br>
>         care of matching the signal at the very point of the jump.<br>
<br>
I would recommend the opusfile library, which implements seeking<br>
specifically for Opus streams.<br>
<br>
<a href="https://archive.mozilla.org/pub/opus/opusfile-0.8.zip" rel="noreferrer" target="_blank">https://archive.mozilla.org/<wbr>pub/opus/opusfile-0.8.zip</a><br>
<a href="https://mf4.xiph.org/jenkins/view/opus/job/opusfile-unix/ws/doc/html/group__stream__seeking.html" rel="noreferrer" target="_blank">https://mf4.xiph.org/jenkins/<wbr>view/opus/job/opusfile-unix/<wbr>ws/doc/html/group__stream__<wbr>seeking.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
 -r<br>
<br>
<br>
</font></span></blockquote></div><br></div>