public void SelectDevice(uint index) { Close(); _rtlDevice = new RtlDevice(index); _rtlDevice.SamplesAvailable += rtlDevice_SamplesAvailable; _rtlDevice.Frequency = _frequency; }
public void Close() { if (this._rtlDevice == null) return; this._rtlDevice.Stop(); this._rtlDevice.SamplesAvailable -= new SamplesAvailableDelegate(this.rtlDevice_SamplesAvailable); this._rtlDevice.Dispose(); this._rtlDevice = (RtlDevice) null; }
public void Close() { if (_rtlDevice != null) { _rtlDevice.Stop(); _rtlDevice.SamplesAvailable -= rtlDevice_SamplesAvailable; _rtlDevice.Dispose(); _rtlDevice = null; } }
public void SelectDevice(uint index) { this.Close(); this._rtlDevice = new RtlDevice(index); this._rtlDevice.SamplesAvailable += new SamplesAvailableDelegate(this.rtlDevice_SamplesAvailable); this._rtlDevice.Frequency = this._frequency; }