Exemple #1
0
 private void InitFader(int sampleRate)
 {
     // used to optionally fade out a recording
     _fader = new VolumeFader(sampleRate);
     _fader.FadeComplete += FadeCompleteHandler;
 }
Exemple #2
0
 private void WaveSourceRecordingStoppedHandler(object sender, StoppedEventArgs e)
 {
     Cleanup();
     OnRecordingStatusChangeEvent(new RecordingStatusChangeEventArgs(RecordingStatus.NotRecording));
     _fader = null;
 }