H Hai Ly Hoang Aug 29, 2004 #1 In my application, i want to play a piece of music (wav or mp3). How to do it ?
S Shiva Aug 29, 2004 #2 Check this one: http://www.codeguru.com/Csharp/Csharp/cs_graphics/sound/article.php/c6143/ In my application, i want to play a piece of music (wav or mp3). How to do it ?
Check this one: http://www.codeguru.com/Csharp/Csharp/cs_graphics/sound/article.php/c6143/ In my application, i want to play a piece of music (wav or mp3). How to do it ?
I Ignacio Machin \( .NET/ C# MVP \) Aug 30, 2004 #3 Hi, You have to P?Invoke : [DllImport("winmm.dll")] public static extern int sndPlaySound(string lpszSoundName , int uFlags) [DllImport("user32.dll")] private static extern bool MessageBeep(int type); Take a look at thos functions in the Windows API Cheers,
Hi, You have to P?Invoke : [DllImport("winmm.dll")] public static extern int sndPlaySound(string lpszSoundName , int uFlags) [DllImport("user32.dll")] private static extern bool MessageBeep(int type); Take a look at thos functions in the Windows API Cheers,