Exemple #1
0
 /// <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;
 }
Exemple #2
0
 public void StopRecording()
 {
     wasapiIsEnabled = false;
     wasapiAudio.StopAudioCapture();
     retrieveAudioTimer.Stop();
 }
Exemple #3
0
 public void StopRecording()
 {
     wasapiIsEnabled = false;
     wasapiAudio.StopAudioCapture();
     intervalTimer.Stop();
 }