Re: A few questions about libvorbis from a newbie
Blake Martin <[email protected]> Fri, 4 Dec 2015 02:42:39 -0600
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CANzyFXnmBzFkxj2jEb7b0eFGnFS4EZviP-rTfVRKshXQAG=pGg@mail.gmail.com> |
--===============2015205252== Content-Type: multipart/alternative; boundary=001a113de4f275d66d05260e7d98 --001a113de4f275d66d05260e7d98 Content-Type: text/plain; charset=UTF-8 Okay, I understand how the number of samples varies and is calculated now. I still do not understand, however, how a number of samples with no defined size is translated into 8, 16, or 32 bit values in my buffer or how channels relate to the pcm total. Specifically, does the pcm total only account for one channel? How are channels represented in the file? Also, Is ov_read generating different amounts of data based on the *word* parameter? I can't think of any other reason why my calculation for a reasonable uncompressed buffer size is ov_pcm_total * numChannels * (the word size I pass to ov_read). Thanks in advance, Blake --001a113de4f275d66d05260e7d98 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Okay, I understand how the number of samples var= ies and is calculated now. I still do not understand, however, how a number= of samples with no defined size is translated into 8, 16, or 32 bit values= in my buffer or how channels relate to the pcm total. Specifically, does t= he pcm total only account for one channel? How are channels represented in = the file?<br><br></div>Also, Is ov_read generating different amounts of dat= a based on the <i>word</i> parameter? I can't think of any other reason= why my calculation for a reasonable uncompressed buffer size is ov_pcm_tot= al * numChannels * (the word size I pass to ov_read).<br><br></div><div>Tha= nks in advance,<br></div><div>Blake<br></div></div> --001a113de4f275d66d05260e7d98-- --===============2015205252== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Vorbis-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis-dev --===============2015205252==--