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

Michael Smith msmith at labyrinth.net.au
Sun Dec 24 14:53:36 PST 2000



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. 

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.



More information about the Vorbis mailing list