コード例 #1
0
ファイル: SdrIpIO.cs プロジェクト: zloiia/sdrsrc
 public SdrIpIO()
 {
     this._gui = new SDRIPClientDialog(this);
       this._gui.Host = Utils.GetStringSetting("SDRIPHost", "127.0.0.1");
       this._gui.Port = Utils.GetIntSetting("SDRIPPort", 50000);
       this._gui.SamepleRateIndex = Utils.GetIntSetting("SDRIPRateIndex", 9);
       this._gui.SampleFormatIndex = Utils.GetIntSetting("SDRIPFormatIndex", 0);
       this._tuneTimer.Elapsed += new ElapsedEventHandler(this.TuneTimerElapsed);
       for (int index = 0; index < this._circularBuffers.Length; ++index)
     this._circularBuffers[index] = new byte[1444];
 }
コード例 #2
0
        public SdrIpIO()
        {
            _gui = new SDRIPClientDialog(this);
            _gui.Host = Utils.GetStringSetting("SDRIPHost", DefaultHost);
            _gui.Port = Utils.GetIntSetting("SDRIPPort", DefaultPort);
            _gui.SamepleRateIndex = Utils.GetIntSetting("SDRIPRateIndex", 9);
            _gui.SampleFormatIndex = Utils.GetIntSetting("SDRIPFormatIndex", 0);

            _tuneTimer.Elapsed += new ElapsedEventHandler(TuneTimerElapsed);

            for (var i = 0; i < _circularBuffers.Length; i++)
            {
                _circularBuffers[i] = new byte[UdpBufferSize];
            }
        }
コード例 #3
0
        public SdrIpIO()
        {
            _gui                   = new SDRIPClientDialog(this);
            _gui.Host              = Utils.GetStringSetting("SDRIPHost", DefaultHost);
            _gui.Port              = Utils.GetIntSetting("SDRIPPort", DefaultPort);
            _gui.SamepleRateIndex  = Utils.GetIntSetting("SDRIPRateIndex", 9);
            _gui.SampleFormatIndex = Utils.GetIntSetting("SDRIPFormatIndex", 0);

            _tuneTimer.Elapsed += new ElapsedEventHandler(TuneTimerElapsed);

            for (var i = 0; i < _circularBuffers.Length; i++)
            {
                _circularBuffers[i] = new byte[UdpBufferSize];
            }
        }