[vorbis] Precache an entire OGG?

programmer_ted ted at fusionapple.com
Wed Feb 18 23:08:43 PST 2004



>You also need to look at what StreamID is after each call, so that you can
>allocate a new buffer (sized appropriately for the number of channels in this
>link) and start using it.

To elaborate on this, one thing to understand is that Ogg Vorbis files can 
hold multiple "logical bitstreams," if the creator of the file pieced 
together two Ogg Vorbis files with different number of channels, for 
instance.  Checking if the "StreamID" is different after each call allows 
you to tell if you're now reading from another logical bitstream, and if 
you should allocate a new buffer (sized for a different number of channels). 

--- >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-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 mailing list