How can I convert wav to MP3 programatically in C++?
+2
A:
You would use an encoder, preferably as a pre-made library as doing your own is a bit of an undertaking.
See this question for an example of how to use the LAME open source encoder.
unwind
2010-04-14 09:14:57
A:
FFMpeg ( http://ffmpeg.org/ ) does this from a UNIX command line. So if you can open a pipe to the command line in C++, you can use ffmpeg for the conversion.
kingjeffrey
2010-04-14 09:18:26