[vorbis] Speed of ov_open (Vorbisfile)

Michael Smith msmith at xiph.org
Mon Oct 20 18:13:41 PDT 2003



On Tuesday 21 October 2003 00:05, Andy Robinson wrote:
> The documentation for ov_open warns us that this func can be fairly time
> consuming.
>
> My app collects info about the file once (how many channels, total
> length etc) but may then open it for reading several times, even
> simultaneously from different threads.
>
> It seems to me it would be very useful to be able to open a file a
> second time without scanning it all over again, by having a variant form
> of ov_open (& ov_open_callbacks) which would take an additional
> parameter - a pointer to an already-open OggVorbis_File - and "clone"
> this info to open very quickly.
>
> Is this a reasonable idea? Is there already a way of doing it? I'll be
> grateful for suggestions.

This sounds like a somewhat reasonable idea. There's no current way of doing 
it. We'd be happy to take a look at a patch (and incorporate it if it's 'good 
enough') if you're interested in giving this a try.

Mike

p.s. This is more appropriate for vorbis-dev, some of the 
developer-type-people aren't on this list.

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