简体   繁体   中英

MP3 codec for WAV files

Wav files support different encodings, including mp3. Is there a C/C++ library that would produce mp3-encoded wav files from uncompressed wav? If not, what would be the best place to start to implement one?

您是否检查过: http : //lame.sourceforge.net/

  1. The best way indead to use Lame (if you do not afraid patent issues). You can use the both sources for lame and lame_enc.dll. Using the lame_enc.dll is more easier. As for RIFF-WAV container: it is simply to create RIFF-WAV files according to RIFF-WAV specification.

  2. There are another possibilities. For example using ACM codecs.

But in any case you should be capable to prepend sound stream with RIFF-WAV header. This can be done manaully (I think the simplest way) or by using some free library (it seems libsnd is capable to do this).

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