2014-11-17 22:58:56 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "DemodulatorThread.h"
|
|
|
|
|
|
|
|
class DemodulatorInstance {
|
|
|
|
public:
|
2014-11-22 22:17:33 -05:00
|
|
|
DemodulatorThread *demodulatorThread;
|
|
|
|
std::thread *t_Demod;
|
|
|
|
|
|
|
|
DemodulatorThreadInputQueue* threadQueueDemod;
|
2014-11-17 22:58:56 -05:00
|
|
|
DemodulatorThreadParameters params;
|
|
|
|
|
2014-11-22 22:33:32 -05:00
|
|
|
DemodulatorInstance();
|
|
|
|
void setVisualOutputQueue(DemodulatorThreadOutputQueue *tQueue);
|
|
|
|
void init();
|
2014-11-17 22:58:56 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
class DemodulatorMgr {
|
|
|
|
public:
|
2014-11-22 22:33:32 -05:00
|
|
|
DemodulatorMgr();
|
|
|
|
~DemodulatorMgr();
|
2014-11-17 22:58:56 -05:00
|
|
|
|
2014-11-22 22:33:32 -05:00
|
|
|
DemodulatorInstance *newThread();
|
2014-11-17 22:58:56 -05:00
|
|
|
|
2014-11-22 22:33:32 -05:00
|
|
|
private:
|
2014-11-17 22:58:56 -05:00
|
|
|
std::vector<DemodulatorInstance *> demods;
|
|
|
|
};
|