开发者

MP3 codec for WAV files

开发者 https://www.devze.com 2022-12-22 11:00 出处:网络
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 st

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?


  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).


Have you checked : http://lame.sourceforge.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消