Re: decoding with the proper sample rate
Alexander Leidinger <[email protected]>
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Message-ID | <20130927202947.00006678@unknown> |
On Wed, 25 Sep 2013 14:50:16 -0700 Michael Winter <[email protected]> wrote: > I am working with the lame api and need to know how to get the sample > rate from the file so I can properly set: > > lame_set_in_samplerate(lame, sr); > > before running the decode process. If you talk about MP3 input, you better use an MP3 decoder(-library) like libmpg123 or libmad instead of what we have in LAME (let's say it is for internal use of LAME). BTW: the frontend can serve as an example how to use the lib-API. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk