A few questions about libvorbis from a newbie
Blake Martin <[email protected]> Tue, 1 Dec 2015 21:53:22 -0600
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CANzyFX=s_GGhm+csDCEBmKyfxu8qS3xhjV2UwJFLJ-sBu0T5gw@mail.gmail.com> |
--===============0013234674== Content-Type: multipart/alternative; boundary=047d7bd75c3a3262760525e2376f --047d7bd75c3a3262760525e2376f Content-Type: text/plain; charset=UTF-8 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. --047d7bd75c3a3262760525e2376f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div><div>First off, I don't even know if th= is is the right place to ask these kind of questions, but I haven't bee= n able to find answers anywhere else, so<br><br></div>1. I have found that = "pcmTotal * vorbisInfo->channels * 2" gives the uncompressed s= ize of every ogg vorbis file I have used. What is a more robust way of gett= ing the full uncompressed file size?<br><br></div>2. How do I read a certai= n amount of ms of data? For example, I have been using sizeUncompressed / s= econds / 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.= <br><br></div>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?<br><br></div>Th= anks for your time.<br></div> --047d7bd75c3a3262760525e2376f-- --===============0013234674== 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 --===============0013234674==--