Search code examples
c++qtopen-sourcemp3

Is there any easy way to play a mp3 file


Possible Duplicate:
How to play mp3 file in c++?

Hi,

I am doing a project which demands the functions of mp3 player. There is no need of giant, full pledged solution, all I want is just "play","pause","stop". I found some libs which are libmad,lame.But, I can't find any example for them. If anybody shed a light on this, I will be thankful to them. Or Is there any way in Qt


Solution

  • There is a Phonon component in Qt 4. Not sure about Window, but in Ubuntu it can play pretty much every format whose codec is available. You might look into Qt Docs at http://doc.qt.nokia.com/latest/phonon-overview.html