mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-20 07:12:43 +00:00
work
This commit is contained in:
@@ -21,6 +21,11 @@ public:
|
||||
void* ctx;
|
||||
};
|
||||
|
||||
enum TuningMode {
|
||||
NORMAL,
|
||||
PANADAPTER
|
||||
};
|
||||
|
||||
void registerSource(std::string name, SourceHandler* handler);
|
||||
void unregisterSource(std::string name);
|
||||
void selectSource(std::string name);
|
||||
@@ -29,12 +34,15 @@ public:
|
||||
void stop();
|
||||
void tune(double freq);
|
||||
void setTuningOffset(double offset);
|
||||
void setTuningMode(TuningMode mode);
|
||||
void setPanadpterIF(double freq);
|
||||
|
||||
std::vector<std::string> getSourceNames();
|
||||
|
||||
Event<std::string> onSourceRegistered;
|
||||
Event<std::string> onSourceUnregister;
|
||||
Event<std::string> onSourceUnregistered;
|
||||
Event<double> onRetune;
|
||||
|
||||
private:
|
||||
std::map<std::string, SourceHandler*> sources;
|
||||
@@ -42,5 +50,7 @@ private:
|
||||
SourceHandler* selectedHandler = NULL;
|
||||
double tuneOffset;
|
||||
double currentFreq;
|
||||
double ifFreq = 0.0;
|
||||
TuningMode tuneMode;
|
||||
dsp::stream<dsp::complex_t> nullSource;
|
||||
};
|
||||
Reference in New Issue
Block a user