[vorbis] Streaming ogg from filepointer pointing to archive of many oggs. Ogg stream does not stop after end of one ogg file - what to do ?
Kenneth C. Arnold
kca5 at cornell.edu
Wed Apr 21 18:45:56 PDT 2004
Michael Smith wrote:
> There are two ways you can do this:
This depends on what sort of 'archive' he means.
If by 'archive' he means trying to play back an uncompressed tar or zip
file in which you've stuffed Ogg's, then definitely implement callbacks
to read the correct parts of the archive in the right order and keep
track of what's going on. Anything less is necessarily somewhat sloppy.
(This is Mike's option #2.)
If by 'archive' he actually means a bunch of Ogg's cat-ed together, then
follow option #1. Ogg was designed for this. This case is what allows
e.g. streaming radio to work. You can certainly query the vorbisfile
library for any relevant information about each stream. If your stream
is seekable, then it calculates and stores position, length, channel
count, and other information about each stream as it loads. Otherwise,
you can only get information for the current stream.
Apologies if any answers confused you.
Ken
<lurk mode="on">
--- >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