Ejemplo n.º 1
0
        /// <summary>
        /// Starts recording.
        /// </summary>
        public void StartRecording()
        {
            App.AudioModel.IsRecording = true;

            // XNA Microphone records audio in 16-bit, Mono, 16.000 Hz.
            if (App.AudioModel.ChannelCount == 1 && App.AudioModel.SampleRate == 16000)
            {
                wasapiInUse = false;
                xnaAudio.StartRecording();
            }
            // 16-bit, Stereo 44100 Hz is used in WASAPI recording
            else
            {
                wasapiInUse = true;
                App.AudioModel.stream.SetLength(0);
                wasapiAudio.StartAudioCapture();
            }
        }
Ejemplo n.º 2
0
 public void StartRecording()
 {
     wasapiIsEnabled = true;
     wasapiAudio.StartAudioCapture();
     retrieveAudioTimer.Start();
 }
Ejemplo n.º 3
0
 public void StartRecording()
 {
     wasapiIsEnabled = true;
     wasapiAudio.StartAudioCapture();
     intervalTimer.Start();
 }