/// <summary> /// Stops recording. /// </summary> public void StopRecording() { // XNA Microphone records audio in 16-bit, Mono, 16.000 Hz. if (App.AudioModel.ChannelCount == 1 && App.AudioModel.SampleRate == 16000) { xnaAudio.StopRecording(); } // 16-bit, Stereo 44100 Hz is used in WASAPI recording else { wasapiAudio.StopAudioCapture(); } saveAudioBuffer(); App.AudioModel.IsRecording = false; }
public void StopRecording() { wasapiIsEnabled = false; wasapiAudio.StopAudioCapture(); retrieveAudioTimer.Stop(); }
public void StopRecording() { wasapiIsEnabled = false; wasapiAudio.StopAudioCapture(); intervalTimer.Stop(); }