Encapsulates a handle to a waveOut device.
Inheritance: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Exemplo n.º 1
0
 public static extern MMSYSERROR waveOutSetPitch(WaveOutSafeHandle hwo, int dwPitch);
Exemplo n.º 2
0
 public static extern MMSYSERROR waveOutPrepareHeader(WaveOutSafeHandle hwo, 
     [In, Out, MarshalAs(UnmanagedType.LPStruct)] WAVEHDR pwh, 
     int cbwh);
Exemplo n.º 3
0
 public static extern MMSYSERROR waveOutRestart(WaveOutSafeHandle hwo);
Exemplo n.º 4
0
 public static extern MMSYSERROR waveOutMessage(WaveOutSafeHandle hwo, uint uMsg, uint dw1, uint dw2);
Exemplo n.º 5
0
 public static extern MMSYSERROR waveOutPause(WaveOutSafeHandle hwo);
Exemplo n.º 6
0
 public static extern MMSYSERROR waveOutGetPosition(WaveOutSafeHandle hwo, ref MMTIME pmmt, int cbmmt);
Exemplo n.º 7
0
 public static extern MMSYSERROR waveOutGetVolume(WaveOutSafeHandle hwo, out int pdwVolume);
Exemplo n.º 8
0
 public static extern MMSYSERROR waveOutGetPitch(WaveOutSafeHandle hwo, out int pdwPitch);
Exemplo n.º 9
0
 public static extern MMSYSERROR waveOutGetPlaybackRate(WaveOutSafeHandle hwo, out int pdwRate);
Exemplo n.º 10
0
 public static extern MMSYSERROR waveOutGetID(WaveOutSafeHandle hwo, out int puDeviceID);
Exemplo n.º 11
0
 public static extern MMSYSERROR waveOutBreakLoop(WaveOutSafeHandle hwo);
Exemplo n.º 12
0
 public static extern MMSYSERROR waveOutWrite(WaveOutSafeHandle hwo, IntPtr pwh, int cbwh);
Exemplo n.º 13
0
 public static extern MMSYSERROR waveOutSetVolume(WaveOutSafeHandle hwo, int dwVolume);
Exemplo n.º 14
0
        public virtual void Open()
        {
            int lFlags = (int)MM_CALLBACK.Function;   // Use a callback function to communicate
            int result;
            IntPtr tmpHandle = new IntPtr(0);
            result = (int)winmm.waveOutOpen(ref tmpHandle, DeviceID, WaveFormat, fCallbackMethod, IntPtr.Zero, lFlags);
            DeviceHandle = new WaveOutSafeHandle(tmpHandle);

            fIsOpen = true;
        }