i've tried the code below to play wav files and it works fine. But when i try to play midi files and mp3, it doesn't play at all. Is there some way to play midi files or mp3 or is it not possible. Could i be using the wrong dll file?
[sysimport(dll="winmm.dll"
]
public static extern long PlaySound(String lpszName, long hModule, long
dwFlags);
PlaySound(@"c:\\media\\sound.wav",0,0);
[sysimport(dll="winmm.dll"
public static extern long PlaySound(String lpszName, long hModule, long
dwFlags);
PlaySound(@"c:\\media\\sound.wav",0,0);