예제 #1
0
        public override void PrepareProcessing()
        {
            if (_portInp.Samplerate <= 0)
            {
                throw new InvalidOperationException("Input Samplerate must be > 0 Hz");
            }

            if (_fft == null || _fft.Size != FFTSize)
            {
                _fft?.Dispose();
                _fft = new FFTWTransform(_portOut.FFTSize);
            }

            inputSampleCount = 0;
            InitBuffers();
        }