コード例 #1
0
ファイル: SoundCardSink.cs プロジェクト: g3gg0/rx-fft
 public void Stop()
 {
     if (SoundDevice != null)
     {
         SoundDevice.Stop();
         SoundDevice = null;
     }
 }
コード例 #2
0
ファイル: SoundCardSink.cs プロジェクト: g3gg0/rx-fft
        public void Start()
        {
            if (SoundDevice == null)
            {
                SquelchState = DemodulationState.eSquelchState.Open;

                Form newForm = new Form();
                newForm.Show();
                newForm.SetDesktopLocation(8192, 8192);
                newForm.Visible = false;

                SoundDevice = new DXSoundDevice(newForm.Handle, SelectedDevice);
                SoundDevice.Start();

                newForm.Close();
            }
        }
コード例 #3
0
ファイル: SoundCardSink.cs プロジェクト: g3gg0/rx-fft
 public DeviceInfo[] GetDevices()
 {
     return(DXSoundDevice.GetDevices());
 }