[Vorbis] help

xiphmont at xiph.org xiphmont at xiph.org
Mon Oct 9 07:51:00 PDT 2006


On 10/9/06, Nagaraj.CG at flextronicssoftware.com <
Nagaraj.CG at flextronicssoftware.com> wrote:
>
>
> So i want to use only file seek functionality in forward and backward.
> So i am planning to use this formula
>
> present_require_file_offset = (total_file_size * 20
> )/Total_time_of_stream(which i know)
>
> If i seek my file pointer to value of "present_require_file_offset"
> ,whether i will be at 20 sec duration of song or not,I know it cant be
> accurate ,but it is ok for
> me if i am at 19th or 21st second also.


Yes, that is acceptible.  Our vorbisfile also implements a similar fast
seek.

You can seek to an approximate raw location in the compressed data, then
simply report the next valid time seen from granule position when playback
resumes.

Monty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis/attachments/20061009/a292910e/attachment.html


More information about the Vorbis mailing list