• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Playing Mp3?

Hi,

Is there existed a way that I can play mp3 files in my application?
eg. by using some *.dll files provided by the software winamp.

Thanks!
0
cplau
Asked:
cplau
1 Solution
 
chensuCommented:
1. The easiest way is to launch the default associated player.

::ShellExecute(hWnd, NULL, _T("my.mp3"), NULL, NULL, SW_SHOWNORMAL);

2. You may use the Windows Media Player Control.

http://msdn.microsoft.com/workshop/c-frame.htm?944766914740#/workshop/imedia/windowsmedia/sdk/wmsdk_fmt.asp

3. Write your own player.

Maplay for Win32 (with source code) by Jeff Tsay
http://www-inst.eecs.berkeley.edu/~ctsay/mp2win32.html
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now