开发者

fetching waveform for visualization in c on any music files format (mp3/ogg/etc..)

I would like to know how can i fetch t开发者_如何转开发he a waveform from any music file format in order to visualize it using some kind of gui. i would like to use already written libraries instead of writing my own.

any ideas?

thanks!


And for a library to do what you ask, check out libsndfile.


That depends on the music file format. LameLib can be used for decoding mp3s, and libogg can be used for decoding oggs. Uncompressed wav files don't need to be decoded, since the file stores the raw PCM data; you just need to read in the file headers, and there's lots of sample code out there that shows you how to do that.


If a program that lets you visualize an audio waveform would help, try Audacity.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜