[vorbis] problems loading an ogg to memory

Arc arc at indymedia.org
Wed Aug 27 16:06:14 PDT 2003


On Wed, Aug 27, 2003 at 06:03:38PM -0500, Joel Gonzales wrote:
> I'm trying to load an entire ogg file into memory, but having some 
> problems trying to figure out how big the ogg file will be in 
> uncompressed form.  I've tried a couple diffrent ways but no luck.  I'm 
> basically just trying to load the uncompressed file into an array of 
> chars. Any help on this?

Use VorbisFile, it has a function for finding the length of the sample
as pcm samples.  I believe you can use this.  It also provides an easy
interface for decoding to raw pcm.

<p>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20030827/6c36d2e5/part-0001.pgp


More information about the Vorbis mailing list