views:

687

answers:

6

I'm looking for a c++ audio library that can play mp3s and mix audio. I can spend some money on it, but I'm on a somewhat tight budget, so the less the better. It really needs to just run on Windows and Mac OS X although Linux and embedded devices are a big plus. Anyone know of a good library or two?

Thanks!

A: 

Have you looked at libavcodec? seems like it would be what you are after. You are able to grab it from the ffmpeg site.

Mike Lowen
A: 

I'd have a really close look at sox. It's excellent. We're using the sox C++ library to do real time transformation of RTP streams. Works well.

Andrew
+2  A: 

JUCE is an awfully nice portable toolkit for graphics and audio. The main architect created it for real time audio processing, but it's evolved into a wider range of tools.

SPWorley
+1  A: 

No firsthand experience, but PortAudio is highly recommended.

sean e
+1  A: 

Though it does do ten zillion more things that you don't mention, I can't fail to recommend Qt with Phonon -- I learned about it only earlier today (from another Q&A on SO!) and it's opening new frontiers for me. If you need even a tiny fraction of the incredible power of Qt, that's definitely something worth trying (LGPL, so free and unencumbered as long as you don't modify the library itself).

Alex Martelli
I don't think Qt with phonon supports audio mixing.
Roger B
"Work in progress", according to the URL I mentioned (I know, I can't wait either;-).
Alex Martelli
+1  A: 

libmad - MPEG Audio Decoder

http://www.underbit.com/products/mad/

David Johnstone