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); }
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); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (_window != null) { _window.Dispose(); _window = null; } }
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); }
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); }
public WaveInWindow(WaveFormat waveFormat) : base(waveFormat) { _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback)); ((System.Windows.Forms.Form)_window).CreateControl(); }
public WaveOutWindow() { _window = new WaveWindowForm(new MMInterops.WaveCallback(Callback)); ((Form)_window).CreateControl(); }