[vorbis-dev] Newbie question
Michael Smith
msmith at labyrinth.net.au
Mon Nov 5 17:45:56 PST 2001
At 04:19 PM 11/5/01 -0800, you wrote:
>Is there a simple straightforward way to determine the size of a buffer
>after decompression? Specifically, I want to just take an OV buffer and
>convert en masse into a DirectSound buffer.
You mean you want to decode an entire stream (file) into a memory buffer?
ov_pcm_total() will give you the number of samples. Multiply by channels,
then by sample size (generally 2 bytes) for total size.
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-dev-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-dev
mailing list