Example #1
0
 internal void Disconnect()
 {
     if (_waveOutWindow == null)
     {
         return;
     }
     _waveOutWindow.Close();
     _waveOutWindow = null;
 }
Example #2
0
 internal void Connect(WaveInterop.WaveCallback callback)
 {
     if (Strategy == WaveCallbackStrategy.NewWindow)
     {
         _waveOutWindow = new WaveWindow(callback);
         _waveOutWindow.CreateControl();
         Handle = _waveOutWindow.Handle;
     }
 }