Hi Ken,
i had the same problem. But there's a solution: you can supply
VorbisFile with your own callback functions for reading and seeking:
http://www.xiph.org/ogg/vorbis/doc/vorbisfile/ov_open_callbacks.html
it's actually pretty simple.
hth,
Chris
Ken Pajala wrote:> How would one go about streaming an entire ogg file from memory? That is,
> I'd like to read the entire file right away and then just decode as I
go.
>
> I'm currently using the various functions in vorbisfile.c which read
from
> files but it's causing intermittent stuttering in my game since the
calls to
> ov_read sometimes experience spikes in return time. I'm guessing that
these
> spikes are due to issues with reading from the disk so I'd like to just
keep
> the ogg files in memory.
>
> Thanks,
>
> ::ken pajala::
>