Ejemplo n.º 1
0
        /// <summary>
        /// Write a buffer of time data to the input queue
        /// </summary>
        /// <param name="buffer">Data to be copied</param>
        /// <remarks>CurrentTime of the data line will be set to the current time of <paramref name="buffer"/></remarks>
        public void Add(NodeSystemLib2.FormatDataFFT.TimeLocatedBufferFFT buffer)
        {
            var samples = buffer.Data;

            for (int i = 0; i < buffer.FrameSize * buffer.Available; i++)
            {
                _floatTemp[i] = (float)samples[i];
            }

            Add(_floatTemp, 0, buffer.FrameSize * buffer.Available);
            _currentTime = buffer.Time;
        }
Ejemplo n.º 2
0
 public void PrepareProcessing(int fftCount)
 {
     _plot.Init(ParentMetric.FFTSize, fftCount, ParentMetric.Samplerate);
     _buffer = new NodeSystemLib2.FormatDataFFT.TimeLocatedBufferFFT(1, ParentMetric.FFTSize, ParentMetric.Samplerate);
 }