decoding with the proper sample rate

Michael Winter <[email protected]>
Newsgroups gmane.comp.audio.mp3.lame
Message-ID <[email protected]>
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.

What is the best way to do so.
------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.