[vorbis] Using vorbisfile with an in-memory file instead of FILE*

Olaf van der Spek Olaf at XCC.TMFWeb.NL
Mon Dec 25 03:15:49 PST 2000



----- Original Message -----
From: "Michael Smith" <msmith at labyrinth.net.au>
To: <vorbis at xiph.org>
Sent: Sunday, December 24, 2000 11:53 PM
Subject: Re: [vorbis] Using vorbisfile with an in-memory file instead of
FILE*

> At 05:12 PM 12/24/00 +0100, you wrote:
> >Hi,
> >
> >How can I use vorbisfile when I've already read the data into memory of
an
> >OGG file?
>
> Use ov_open_callbacks() and write callbacks which fake reading from a file
> (while actually reading from memory buffers). vorbisfile is designed for
> reading from a file, so the interface is a bit messy when you try to do
> this, but it is possible.

I thought maybe it was possible with the two parameters that specify you've
already read a bit (in this case the whole file), but that didn't work.
Is there some documentation of those callbacks?
I didn't find very much docs about it.

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

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