/// <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(); } }
public void StartRecording() { wasapiIsEnabled = true; wasapiAudio.StartAudioCapture(); retrieveAudioTimer.Start(); }
public void StartRecording() { wasapiIsEnabled = true; wasapiAudio.StartAudioCapture(); intervalTimer.Start(); }