[vorbis-dev] Vorbisfile: non-seekable

Olaf van der Spek OvdSpek at LIACS.NL
Mon Nov 12 06:21:39 PST 2001



Michael Smith wrote:
> 
> >> 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.

Why would you use callbacks if you can live without them if you already
have the complete stream in memory?
But creating good callbacks is indeed not that hard.
> 
> 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

Hurt? In what way?

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

Ok. But then I might get the other bug for small streams.
> 
> 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.


-- 
Olaf van der Spek
Almere, Holland
Olaf at XCC.TMFWeb.NL
http://xccu.sourceforge.net/
http://xcc.tiberian.com/

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