Exemple #1
0
        private void buttonDSPStart_Click(object sender, EventArgs e)
        {
            var device = (SoundWrapper.DeviceInfo)comboBoxRec.SelectedItem;

            timerStartup.Start();
            recorder.Start(device);

            comboBoxPlay.Enabled   = false;
            comboBoxRec.Enabled    = false;
            buttonDSPStart.Enabled = false;

            volumeSmoothed = 0.0f; //smooth start
        }
Exemple #2
0
        private void StartPlayer()
        {
            if (InvokeRequired)
            {
                Invoke(new Action(() => StartPlayer()));
                return;
            }

            var device = (SoundWrapper.DeviceInfo)comboBoxPlay.SelectedItem;

            isPlaying = true;
            player.Start(device);

            buttonDSPStop.Enabled = true;
        }
Exemple #3
0
 public void StartRecording()
 {
     recorder.Start(0);
 }
Exemple #4
0
 public void Start()
 {
     player.Start(0);
 }