Esempio n. 1
0
 public void StopRecording()
 {
     if (AudioRecorder == null)
     {
         return;
     }
     AudioRecorder.StopRecord();
 }
        private void StopAlAu()
        {
            // Get rid of Alvas Audio registration window
            bgAlvasRegWindowCloser.DoWork += new DoWorkEventHandler(bgAlvasRegWindowCloser_DoWork);
            bgAlvasRegWindowCloser.RunWorkerAsync();
            RecorderEx rex = new RecorderEx();

            rex.Format = AudioCompressionManager.GetPcmFormat(1, 16, 44100);
            rex.StartRecord();
            rex.StopRecord();
            // Get rid of Alvas Audio registration window
        }