I am converting the wave file into mp3 using lame encoder.
I have reached this answer (Mike Seymour) which does the work very nicely. I am looking to convert this into a c++ equivalent code.
This answer (trodevel) Does the c++ equivalent conversion of the code but I am unable to understand this one.
What I am looking for is to understand how Mike Seymour's answer works?
Why he used a pcm_buffer
(size 4 * 8192 bytes) & mp3_buffer
(size 8192 bytes)?
Is the ratio between (pcm size) : (mp3 size) = 4:1?
Any help is appreciated.