[vorbis-dev] xmms module

Monty xiphmont at xiph.org
Mon Nov 8 14:11:02 PST 1999



> I was wondering... when using ov_open(), should I then use only calls in
> vorbisfile.a?  I attempted to use calls in the vorbisfile library to
> calculate the length and bitrate, but use the existing code to perform
> decoding.  This entailed a fseek() to return to the beginning of the file,
> and an ogg_stream_clear() and ogg_stream_init() as I couldn't figure out
> how to find the serial number before calling ov_open()...

The OggVorbis_File struct needs to be kept up to date if you want to use
vorbisfile.c and mix outside calls (eg, fseeking without updating
OggVorbis_File is a Bad Thing), else the next call to vorbisfile.a may go
haywire. 

The struct is the only storage used though; there are no hidden internal
gotchas to worry about.  I need to document the OggVorbis_File struct as I
meant the vorbisfile.c code to be a starting boilerplate for people to hack
their own modifications to suit their needs.

> My code at home is also segving.  If anyone wants to check it out and try
> to figure out what's going wrong, shoot me a message and I'll e-mail it to
> you.

Send me a copy.

Monty

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/



More information about the Vorbis-dev mailing list