[Vorbis-dev] A few questions about libvorbis from a newbie

Blake Martin blakemartin.official at gmail.com
Tue Dec 1 19:53:22 PST 2015


First off, I don't even know if this is the right place to ask these kind
of questions, but I haven't been able to find answers anywhere else, so

1. I have found that "pcmTotal * vorbisInfo->channels * 2" gives the
uncompressed size of every ogg vorbis file I have used. What is a more
robust way of getting the full uncompressed file size?

2. How do I read a certain amount of ms of data? For example, I have been
using sizeUncompressed / seconds / 4 (using the above method to get
sizeUncompressed) to try and get 250ms worth of data, but I'm not sure it
is doing what I think it does.

3. How do I determine the sample size of a file? For example, how do I know
if I should reading 16 bit or 8 bit samples?

Thanks for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20151201/d53f37f2/attachment.htm 


More information about the Vorbis-dev mailing list