mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-10 14:23:27 -05:00
34 lines
644 B
C++
34 lines
644 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include "DemodulatorThread.h"
|
|
|
|
class DemodulatorInstance {
|
|
public:
|
|
DemodulatorThread *demodulatorThread;
|
|
std::thread *t_Demod;
|
|
|
|
DemodulatorThreadInputQueue* threadQueueDemod;
|
|
DemodulatorThreadParameters params;
|
|
|
|
DemodulatorInstance();
|
|
~DemodulatorInstance();
|
|
void setVisualOutputQueue(DemodulatorThreadOutputQueue *tQueue);
|
|
void init();
|
|
void terminate();
|
|
};
|
|
|
|
class DemodulatorMgr {
|
|
public:
|
|
DemodulatorMgr();
|
|
~DemodulatorMgr();
|
|
|
|
DemodulatorInstance *newThread();
|
|
|
|
void terminateAll();
|
|
private:
|
|
std::vector<DemodulatorInstance *> demods;
|
|
};
|