Пример #1
0
 public WaveOutWindow(IntPtr windowHandle)
 {
     _window = new WaveWindow(new MMInterops.WaveCallback(Callback));
     if (windowHandle == IntPtr.Zero)
         throw new ArgumentException("windowHandle is zero", "windowHandle");
     ((WaveWindow)_window).AssignHandle(windowHandle);
 }
Пример #2
0
 public WaveInWindow(IntPtr windowHandle, WaveFormat waveFormat)
     : this(waveFormat)
 {
     if (windowHandle == IntPtr.Zero)
         throw new ArgumentException("windowHandle is zero", "windowHandle");
     _window = new WaveWindow(new MMInterops.WaveCallback(Callback));
     ((WaveWindow)_window).AssignHandle(windowHandle);
 }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (_window != null)
     {
         _window.Dispose();
         _window = null;
     }
 }
Пример #4
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (_window != null)
     {
         _window.Dispose();
         _window = null;
     }
 }
Пример #5
0
 public WaveOutWindow(IntPtr windowHandle)
 {
     _window = new WaveWindow(new MMInterops.WaveCallback(Callback));
     if (windowHandle == IntPtr.Zero)
     {
         throw new ArgumentException("windowHandle is zero", "windowHandle");
     }
     ((WaveWindow)_window).AssignHandle(windowHandle);
 }
Пример #6
0
 public WaveInWindow(IntPtr windowHandle, WaveFormat waveFormat)
     : this(waveFormat)
 {
     if (windowHandle == IntPtr.Zero)
     {
         throw new ArgumentException("windowHandle is zero", "windowHandle");
     }
     _window = new WaveWindow(new MMInterops.WaveCallback(Callback));
     ((WaveWindow)_window).AssignHandle(windowHandle);
 }
Пример #7
0
 public WaveInWindow(WaveFormat waveFormat)
     : base(waveFormat)
 {
     _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback));
     ((System.Windows.Forms.Form)_window).CreateControl();
 }
Пример #8
0
 public WaveInWindow(WaveFormat waveFormat)
     : base(waveFormat)
 {
     _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback));
     ((System.Windows.Forms.Form)_window).CreateControl();
 }
Пример #9
0
 public WaveOutWindow()
 {
     _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback));
     ((Form)_window).CreateControl();
 }
Пример #10
0
 public WaveOutWindow()
 {
     _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback));
     ((Form)_window).CreateControl();
 }