[vorbis] Play back file from RAM

Michael Smith msmith at labyrinth.net.au
Wed Apr 4 18:55:17 PDT 2001



At 03:27 AM 4/5/01 +0200, you wrote:
>
>How can I decode a Vorbis file which is in RAM (not in a file
>on the disk)??

Use ov_open_callbacks(), and provide a set of callbacks which read from
your memory buffers. The API for vorbisfile isn't well suited to playback
from a memory buffer, but it will work. You could also just decode using
libvorbis, but seeking is a real pain to implement, so I recommend not
going down that route.

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