mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-20 02:42:06 -05:00
25 lines
650 B
C++
25 lines
650 B
C++
#pragma once
|
|
|
|
#include "VisualProcessor.h"
|
|
#include "DemodDefs.h"
|
|
#include <cmath>
|
|
#include <cstring>
|
|
|
|
class FFTDataDistributor : public VisualProcessor<DemodulatorThreadIQData, DemodulatorThreadIQData> {
|
|
public:
|
|
FFTDataDistributor();
|
|
void setFFTSize(unsigned int fftSize);
|
|
void setLinesPerSecond(unsigned int lines);
|
|
unsigned int getLinesPerSecond();
|
|
|
|
protected:
|
|
void process();
|
|
|
|
DemodulatorThreadIQData inputBuffer, tempBuffer;
|
|
ReBuffer<DemodulatorThreadIQData> outputBuffers;
|
|
unsigned int fftSize;
|
|
unsigned int linesPerSecond;
|
|
double lineRateAccum;
|
|
size_t bufferMax, bufferOffset, bufferedItems;
|
|
};
|