简体   繁体   中英

How to convert 24-bit wav to mp3 with Lame using C++

I am using the Lame library in a C++ application to encode wav files to mp3 files.

It works ok for 16-bit wavs, but now I need to convert some 24-bit wavs and I cannot seem to find the way. In particular, I cannot find a function for setting the "bitwidth" parameter taken as a switch by the lame command line. (The command line executable does convert 24-bit wavs correctly when setting "bitwidth" to 24, so I think it must be possible.)

Thank you in advance for any hint!

The command line executable does convert 24-bit wavs correctly when setting "bitwidth" to 24, so I think it must be possible

Perhaps the solution then is to look at the source-code for the command line utility, or even step it in your debugger and see how it does it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM