[Vorbis] file io and reading ogg vorbis files

Monty xiphmont at xiph.org
Mon Mar 13 10:08:01 PST 2006




On Wed, Mar 08, 2006 at 08:30:13AM -0500, Luis Cordova wrote:
> Basically, what I want to do is to have a function that seeks for the header
> of a page within an ogg vorbis file such that it returns the header basic
> info and absolute position in number of bytes telling where the read pointer
> is.
> 
> Notice that there are functions like ov_read that are too high level and
> return other things on pcm that really are not actual positions within the
> file. There is ov_raw_seek however this one I have to put the offset so it
> is kind of the inverse problem and thus not useful here.

Vorbisfile is a convenience library built on top of the layer you
want: libogg.  It has functions to do the things you describe.

There is both libogg documentation at xiph.org, and you may use
vorbisfile and decoder_example in the libvorbis code as examples of
using libogg in practice.

Monty


More information about the Vorbis mailing list