mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-03-07 00:08:44 -05:00
23 lines
535 B
C
23 lines
535 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "VisualProcessor.h"
|
||
|
|
#include "DemodDefs.h"
|
||
|
|
#include <cmath>
|
||
|
|
|
||
|
|
class FFTDataDistributor : public VisualProcessor<DemodulatorThreadIQData, DemodulatorThreadIQData> {
|
||
|
|
public:
|
||
|
|
FFTDataDistributor();
|
||
|
|
void setFFTSize(int fftSize);
|
||
|
|
void setLinesPerSecond(int lines);
|
||
|
|
int getLinesPerSecond();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
void process();
|
||
|
|
|
||
|
|
DemodulatorThreadIQData inputBuffer, tempBuffer;
|
||
|
|
ReBuffer<DemodulatorThreadIQData> outputBuffers;
|
||
|
|
int fftSize;
|
||
|
|
int linesPerSecond;
|
||
|
|
double lineRateAccum;
|
||
|
|
};
|