From: Joe M. <jo...@te...> - 2007-10-09 13:36:06
|
Hey, I would like to try installing the latest 3.98 to see if it solves some problems I'm having, but I'm not sure how to get all the files I need to compile it... can anybody give a hint on what command(s) I should use (in linux) to get the right files? Thanks! -Joe Marty -----Original Message----- From: lam...@li... [mailto:lam...@li...] On Behalf Of Alexander Leidinger Sent: Tuesday, October 09, 2007 5:31 AM To: dianaloren Cc: lam...@li... Subject: Re: [Lame-dev] questions about lame API Quoting dianaloren <dia...@gm...> (from Sun, 7 Oct 2007 =20 04:17:04 -0700 (PDT)): > > I have been taking a look at the lame_encode_buffer_interleaved() > function, but I still don't get too clear what should be the PCM input (I'm > sorry, I'm very new in this area). It switches between left and right. IIRC it starts with the left =20 channel. So for 16bit stereo, it's 16bits left, then 16bits right, =20 then 16bits left, 16bits right, ... > For what I have been reading, the PCM should be basically the WAV file. No. It should be interleaved PCM samples. A WAV can contain a lot, not =20 only PCM samples. > But how can I pass the WAV file as a short int PCM[]?? I haven't seen any > function for this in the lame.h... but I have seen how you do it in the > files in frontend/ ... but then you have to call lots of other functions in > other .c files. Is there an easier way? You have to open a file yourself. Then you have to read the data. If =20 the data is already in the right format, you just feed it to lame. If =20 it is not in the right format, you have to convert it to the right =20 format yourself. The lame-lib is not a generic format conversation =20 library, but an mp3 encoding library. It does not know about formats =20 in files, only about PCM samples. In the frontend we have support for =20 a generic audio IO library (libsndfile), and we have some functions =20 which are able to read some simple file formats without this library. If you don't know how the file format you have to use looks like, I =20 suggest to take a generic audio IO library, typically it is able to =20 provide the data in a interleaved PCM stream or separated PCM streams. =20 Which audio IO library you can use depends upon your needs and the =20 operating system, and is not related to LAME. Hope this helps, Alexander. --=20 Removing the straw that broke the camel's back does not necessarily allow the camel to walk again. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D = 72077137 ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Lame-dev mailing list Lam...@li... https://lists.sourceforge.net/lists/listinfo/lame-dev |