Playing a MP3 file with C#
I would like to know if it was possible to play MP3 files in C# ? Because i've try with is and it doesn't seems to work :
[ DllImport("winmm.dll") ]
private static extern int PlaySound
(
string pszSound,
int hmod,
int flags
);
private string sMusiqueFond = Application.StartupPath.ToString() + "\\sons\\monde.mp3";
PlaySound(sMusiqueFond, 0, 1);
but this only produce a bip. If i use a wav file, it's ok but wav are too big so i want to be able to use a MP3 file.
Any ideas ?
Thanks