[vorbis-dev] Another vorbisfile question
John Morton
jwm at eslnz.co.nz
Fri Dec 12 16:19:33 PST 2003
On Friday 12 December 2003 13:46, Michael Smith wrote:
> On Thursday 11 December 2003 20:45, John Morton wrote:
> > Is there a straight forward method for seeking straight to a particular
> > logical stream using vorbisfile?
>
> Not really. It hasn't even been asked for.
>
> > I'm guessing I'll have to look the offset for a given link up in
> > vf->offsets, and use that in ov_raw_seek?
>
> Yes, or (if you want to not mess around inside the vorbisfile struct) use
> ov_pcm_total or ov_raw_total, and iterate over the links prior to the one
> you want, then seek using the raw or pcm seek functions.
Thanks - that sounds like the best plan. When I get it working and the result
proves useful, I'll send in a vorbisfile patch to do the job.
John
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list