示例#1
0
 public void CloseTuner()
 {
     DeviceClosed?.Invoke(this, EventArgs.Empty);
     SampleSource.Close();
     CloseTuner();
     Close();
 }
示例#2
0
 public void CloseControl()
 {
     CloseConnection();
     NetShmemSink.Close();
     SampleSource.Close();
     CloseTuner();
     Close();
 }
示例#3
0
 public void CloseSource()
 {
     if (ProcessThread != null)
     {
         Processing = false;
         ProcessThread.Join(1000);
         ProcessThread = null;
     }
     if (SampleSource != null)
     {
         SampleSource.Close();
         SampleSource = null;
     }
 }
示例#4
0
        public virtual void CloseTuner()
        {
            DeviceClosed?.Invoke(this, EventArgs.Empty);

            if (Connected)
            {
                USBRX.Tuner.CloseTuner();
                USBRX.CurrentMode = eTransferMode.Stopped;
                USBRX.Close();
                USBRX = null;
                _SampleSource.Close();

                Connected = false;
            }

            Hide();
        }