M
Mark Arteaga
I am trying to stop a wave file after I start playing it
using the Multimedia API. I succesfully P/Invoke the
following:
waveOutOpen - Open the wave file
waveOutPause - Pause the playing
waveOutRestart - Restart after pausing
waveOutWrite - Start the wave file
For some reason when I P/Invoke waveOutReset nothing
happens.
Here is the P/Invoke:
[DllImport ("coredll.dll", EntryPoint="waveOutReset",
SetLastError=true)]
public static extern int waveOutReset
(IntPtr hWaveOut);
The return value is 0 which means success but the wave
file does not stop playing. I pass the hWaveOut created
using waveOutOpen.
Does anyone have any ideas?
Mark
using the Multimedia API. I succesfully P/Invoke the
following:
waveOutOpen - Open the wave file
waveOutPause - Pause the playing
waveOutRestart - Restart after pausing
waveOutWrite - Start the wave file
For some reason when I P/Invoke waveOutReset nothing
happens.
Here is the P/Invoke:
[DllImport ("coredll.dll", EntryPoint="waveOutReset",
SetLastError=true)]
public static extern int waveOutReset
(IntPtr hWaveOut);
The return value is 0 which means success but the wave
file does not stop playing. I pass the hWaveOut created
using waveOutOpen.
Does anyone have any ideas?
Mark