[vorbis] problems loading an ogg to memory

Stan Seibert volsung at mailsnare.net
Wed Sep 3 10:52:09 PDT 2003



On Wed, 2003-09-03 at 12:33, Stan Seibert wrote:
> If your sound file is 200 PCM samples in length at a rate of 44100 with
> only one channel, then the size of the array in bytes is 8820000*sample
> size in bytes.  For example, assume you are decoding a file to 16-bit
> integers.  You could declare the array to hold this in C in one of the
> following two ways:

Ah, yes, as pointed out by another poster, this is crap.  It would be
correct if it was 200 seconds, not 200 PCM samples.

Oops.


---
Stan Seibert

<p>--- >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