Пример #1
0
 public void SelectDevice(uint index)
 {
     Close();
     Device = new RtlDevice(index);
     Device.SamplesAvailable += rtlDevice_SamplesAvailable;
     Device.Frequency         = _frequency;
 }
Пример #2
0
        public void Close()
        {
            if (Device == null)
            {
                return;
            }

            Device.Stop();
            Device.SamplesAvailable -= rtlDevice_SamplesAvailable;
            Device.Dispose();
            Device = null;
        }