[vorbis-dev] Vorbisfile: non-seekable

Michael Smith msmith at labyrinth.net.au
Mon Nov 12 05:55:17 PST 2001



>> If you want seekable access to a stream existing in memory,
>> provide callbacks for this, and don't pass the buffer in as
>> initial. Slightly harder, but not much.
>
>Wouldn't it be better/easier to modify vorbisfile, so everybody in this
>situation benefits, instead of all having to write the same callbacks?
>

No. It doesn't make sense - there's no sensible reason to use the initial
buffer except when the stream ISN'T seekable anyway, given the way the
vorbisfile API is designed. 

Also, then vorbisfile has to keep this data around until ov_close(), which
isn't needed in the current design. Doing this would hurt anyone using
the initial buffer for its intended purpose, for a trivial advantage 
(implementing sensible callbacks here shouldn't take more than about
1 minute for your simple case. Maybe 2 minutes.). Do it the right way, 
rather than abusing a facility provided for other reasons. 

Michael

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