德code的MP3到整数流 [英] decode an mp3 to a stream of ints
问题描述
我在寻找一个易于使用的lib,将MP3文件转换成int类型的序列(和反向),preferable,而无需将它们全部倾倒到RAM中。 去code下一16kB的这个缓冲区之类的API将是理想的。
I'm looking for an easy to use lib that will convert an MP3 file to a sequence of int values (and the reverse), preferable without having to dump them all into RAM. A "decode the next 16kB into this buffer" like API would be ideal.
我需要C或简单的C ++绑定。
I need C or simple C++ bindings.
一个MP3< - > RAW过滤CLI工具的工作,但我宁愿没有要保存在磁盘uncom pressed文件
A MP3<->RAW filter CLI tool would work but I'd rather not have to keep uncompressed files on disk.
推荐答案
尝试 的libmad
或FFmpeg的 libav codeC
。这两个应该满足你的要求。古 mp3lib
它最初是由/一部分得到的(?) mpg123的
也已在<$ C $复活C>的mplayer 有了新的发展,也许有最好的表现,但可能是最丑陋的code。 : - )
Try libmad
or ffmpeg's libavcodec
. Both should meet your requirements. The ancient mp3lib
which was originally derived from/part of (?) mpg123
has also been resurrected in mplayer
with new development and perhaps has the best performance, but probably the ugliest code. :-)
这篇关于德code的MP3到整数流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!