How can I decode a Vorbis file which is in RAM (not in a file on the disk)?? (Writing it to disk isn't an option...) -- <\___/> / O O \ \_____/ FTB. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
fungus wrote:> > How can I decode a Vorbis file which is in RAM (not in a file > on the disk)?? > > (Writing it to disk isn't an option...) >PS: I need to ov_seek within the data. -- <\___/> / O O \ \_____/ FTB. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.