c# - Playing Multiple Sounds + Looping Music in WinForm -
i have tried couple of ways. 1 being soundplayer, understanding can play 1 sound @ time, , need background music looping. have used winmm.dll try , play looping music, doesnt seem work me. also, cant seem play sound more once. here have tried
[dllimport("winmm.dll")] private static extern long mcisendstring(string strcommand, stringbuilder strreturn, int ireturnlength, intptr hwndcallback); mcisendstring(@"open c:\\users\\jberry\\documents\\pics\\musicloop2.wav type waveaudio alias applause", null, 0, intptr.zero); mcisendstring(@"play applause", null, 0, intptr.zero);
this works, play once. have seen lot of post
mcisendstring(@"open c:\\users\\jberry\\documents\\pics\\musicloop2.wav type waveaudio alias applause", null, 0, intptr.zero); mcisendstring(@"play applause repeat", null, 0, intptr.zero);
but wont play anything. me find quick way play multiple sounds + repeating song loop? if didnt have install dlls nice, whats needed
Comments
Post a Comment