private void StopAndWrite() { if (waveFileCreator == null || IsRecording == false) { return; } waveFileCreator.StopAndWrite(); if (analyzer != null) { analyzer.DetachDspBus(); analyzer.Dispose(); } }
protected override void EndRecording(RecordingSession session) { base.EndRecording(session); if (waveFileCreator != null) { waveFileCreator.StopAndWrite(); } if (analyzer != null) { analyzer.DetachDspBus(); analyzer.Dispose(); } }