示例#1
0
    private void StopAndWrite()
    {
        if (waveFileCreator == null  || IsRecording == false)
        {
            return;
        }

        waveFileCreator.StopAndWrite();

        if (analyzer != null)
        {
            analyzer.DetachDspBus();
            analyzer.Dispose();
        }
    }
示例#2
0
        protected override void EndRecording(RecordingSession session)
        {
            base.EndRecording(session);

            if (waveFileCreator != null)
            {
                waveFileCreator.StopAndWrite();
            }

            if (analyzer != null)
            {
                analyzer.DetachDspBus();
                analyzer.Dispose();
            }
        }