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