T
tamarindm
I need to play a .wav file over and over again. I am using the
following code.
[DllImport("winmm.dll")]
private static extern bool PlaySound( string lpszName, int hModule, int
dwFlags );
public int SND_ASYNC = 0x0001; // play asynchronously
public int SND_LOOP = 0x0008; // loop the sound until next
PlaySound
PlaySound( wavfile, 0, (SND_ASYNC | SND_LOOP));
But it plays only once and stop. Any idea what's wrong ?
Thanks in advance.
following code.
[DllImport("winmm.dll")]
private static extern bool PlaySound( string lpszName, int hModule, int
dwFlags );
public int SND_ASYNC = 0x0001; // play asynchronously
public int SND_LOOP = 0x0008; // loop the sound until next
PlaySound
PlaySound( wavfile, 0, (SND_ASYNC | SND_LOOP));
But it plays only once and stop. Any idea what's wrong ?
Thanks in advance.