<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1432002768159_3394"><span id="yui_3_16_0_1_1432002768159_3430">I am no Vorbis developer, and I have never looked into the details of Ogg-Vorbis implementation, but since Ogg-Vorbis is a lossy format, there is no one to one correspondence of PCM samples and bytes in the stream. Ogg-Vorbis is also a variable bitrate format.<br></span></div><div id="yui_3_16_0_1_1432002768159_3458"><br><span id="yui_3_16_0_1_1432002768159_3430"></span></div><div id="yui_3_16_0_1_1432002768159_3512"><span id="yui_3_16_0_1_1432002768159_3430">I mean that first the stream has to be reconstituted into uncompressed PCM samples, and only then you can get to the desired sample.</span></div><div id="yui_3_16_0_1_1432002768159_3541"><br></div><div id="yui_3_16_0_1_1432002768159_3542">Regards,</div><div id="yui_3_16_0_1_1432002768159_3543"> Sergei.</div><div><br> </div><blockquote id="yui_3_16_0_1_1432002768159_3398" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div id="yui_3_16_0_1_1432002768159_3397" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1432002768159_3396" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1432002768159_3395" dir="ltr"> <hr id="yui_3_16_0_1_1432002768159_3399" size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Madison Link <ducks@ducksnm.com><br> <b><span style="font-weight: bold;">To:</span></b> vorbis@xiph.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 19, 2015 3:38 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Vorbis] How do I seek to seek to specific samples using libvorbis?<br> </font> </div> <div id="yui_3_16_0_1_1432002768159_3431" class="y_msg_container"><br><div id="yiv2438338505">
<style>
<!--
#yiv2438338505
#yiv2438338505 p.yiv2438338505MsoNormal, #yiv2438338505 li.yiv2438338505MsoNormal, #yiv2438338505 div.yiv2438338505MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv2438338505 a:link, #yiv2438338505 span.yiv2438338505MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv2438338505 a:visited, #yiv2438338505 span.yiv2438338505MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv2438338505 span.yiv2438338505EmailStyle17
        {font-family:Arial;color:windowtext;}
_filtered #yiv2438338505 {margin:1.0in 1.25in 1.0in 1.25in;}
#yiv2438338505 div.yiv2438338505Section1
        {}
-->
</style>
<div>
<div class="yiv2438338505Section1">
<div class="yiv2438338505MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;">What is the best practice for seeking to a specific
(arbitrary) PCM sample in an Ogg file that contains vorbis, using libvorbis?</span></font></div>
</div>
</div>
</div><br>_______________________________________________<br>Vorbis mailing list<br><a ymailto="mailto:Vorbis@xiph.org" href="mailto:Vorbis@xiph.org">Vorbis@xiph.org</a><br><a id="yui_3_16_0_1_1432002768159_3558" href="http://lists.xiph.org/mailman/listinfo/vorbis" target="_blank">http://lists.xiph.org/mailman/listinfo/vorbis</a><br><br><br></div> </div> </div> </blockquote> </div></body></html>