Simple C++ DirectShow MP3 Player with .NET Wrapper
Briefly

In the Windows C++ world, there is no good simple MP3 player class. The alternatives are usually either the outdated Media Control Interface (MCI) or monolithic commercial libraries, which is an overkill if the programmer just needs to simply play an MP3 file.
If you need to just play MP3s in your application, Mp3 class is a no-frills C++ MP3/WMA DirectShow player class, for such simple needs. The original code is from Flipcode's contributor, Alan Kemp. The original code needs a bit of tweaking to include the necessary header files and import libraries to get it to compile in Visual Studio 2010.
Since this class relies on DirectShow, you need to download the Windows SDK to build it. If you are using Visual Studio 2010, it actually comes with a subset of the Windows SDK which includes the DirectShow libraries, so you can build this class without downloading anything.
The original class only has the play, pause, and stop functionality. To address the need for looping music, the method WaitForCompletion was added to poll periodically whether the playing has ended, to replay it again.
Read at CodeProject
[
add
]
[
|
|
]