D
Dennis C. Drumm
Using the Win API to play a sound with the code below in my Windows Form
application. I get a huge delay (seems like application is hanging) just
prior to the sound being played each time. Is this something to do with
unmanaged code? Is there any way to fix the delay and speed the process up?
Thanks,
Dennis
using System.Runtime.InteropServices;
[DllImport("winmm.dll")]
public static extern int sndPlaySound(string lpszSoundName, int uFlags);
sndPlaySound("Windows XP Exclamation.wav", 0x001);
application. I get a huge delay (seems like application is hanging) just
prior to the sound being played each time. Is this something to do with
unmanaged code? Is there any way to fix the delay and speed the process up?
Thanks,
Dennis
using System.Runtime.InteropServices;
[DllImport("winmm.dll")]
public static extern int sndPlaySound(string lpszSoundName, int uFlags);
sndPlaySound("Windows XP Exclamation.wav", 0x001);