Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem playing audio files

Status
Not open for further replies.

luvcloud

Programmer
Apr 23, 2002
24
0
0
MY
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);
 
Anyone have an answer for this?

"Free will...is an illusion"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top