Encapsulates a handle to a waveOut device.
Наследование: Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
Пример #1
0
 public static extern MMSYSERROR waveOutSetPitch(WaveOutSafeHandle hwo, int dwPitch);
Пример #2
0
 public static extern MMSYSERROR waveOutPrepareHeader(WaveOutSafeHandle hwo, 
     [In, Out, MarshalAs(UnmanagedType.LPStruct)] WAVEHDR pwh, 
     int cbwh);
Пример #3
0
 public static extern MMSYSERROR waveOutRestart(WaveOutSafeHandle hwo);
Пример #4
0
 public static extern MMSYSERROR waveOutMessage(WaveOutSafeHandle hwo, uint uMsg, uint dw1, uint dw2);
Пример #5
0
 public static extern MMSYSERROR waveOutPause(WaveOutSafeHandle hwo);
Пример #6
0
 public static extern MMSYSERROR waveOutGetPosition(WaveOutSafeHandle hwo, ref MMTIME pmmt, int cbmmt);
Пример #7
0
 public static extern MMSYSERROR waveOutGetVolume(WaveOutSafeHandle hwo, out int pdwVolume);
Пример #8
0
 public static extern MMSYSERROR waveOutGetPitch(WaveOutSafeHandle hwo, out int pdwPitch);
Пример #9
0
 public static extern MMSYSERROR waveOutGetPlaybackRate(WaveOutSafeHandle hwo, out int pdwRate);
Пример #10
0
 public static extern MMSYSERROR waveOutGetID(WaveOutSafeHandle hwo, out int puDeviceID);
Пример #11
0
 public static extern MMSYSERROR waveOutBreakLoop(WaveOutSafeHandle hwo);
Пример #12
0
 public static extern MMSYSERROR waveOutWrite(WaveOutSafeHandle hwo, IntPtr pwh, int cbwh);
Пример #13
0
 public static extern MMSYSERROR waveOutSetVolume(WaveOutSafeHandle hwo, int dwVolume);
Пример #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;
        }