Where to get pure C++ Lame MP3 encoder - PCM to MP3 example?

Rella picture Rella · Mar 10, 2010 · Viewed 13.4k times · Source

So all I need is a simple function that sets it up (eating incoming PCM RATE (for example: rate near to 44100) It's channels (for example: 2) and -bits (for example: 16) and desirable 128 kb\s rate) and another one that takes PCM data and encodes it into pure MP3 frames.

I know it looks like a silly homework task but I assure you - it is not.

I hope it will be of help to all C++ developers starting with MP3s.

So can anybody please help me with that?

Answer

Mike Seymour picture Mike Seymour · Mar 23, 2010

See the example I gave in your other question for the basic usage of Lame. It should contain everything you need.