public void PrepareProcessing(int queueSizeFrames, int transferBufferSizeFrames) { if (Samplerate <= 0) { throw new ArgumentOutOfRangeException(nameof(Samplerate)); } if (queueSizeFrames < 0) { throw new ArgumentOutOfRangeException(nameof(queueSizeFrames), "must be >= 0"); } if (transferBufferSizeFrames < 0) { throw new ArgumentOutOfRangeException(nameof(transferBufferSizeFrames), "must be >= 0"); } _queue = new RingBufferFFT(queueSizeFrames, FFTSize, Samplerate); _transferBuffer = new TimeLocatedBufferFFT(transferBufferSizeFrames, FFTSize, Samplerate); }
public void PrepareProcessing(int queueFFTs, int bufferFFTs) { _queue = new RingBufferFFT(queueFFTs, FFTSize, Samplerate); _readBuffer = new TimeLocatedBufferFFT(bufferFFTs, FFTSize, Samplerate); _stamp = TimeStamp.Zero; }