Cleanup, demod limits, prevent negative freq, move iq resampler process back to demodulator pre thread

This commit is contained in:
Charles J. Cliffe
2015-01-04 13:20:31 -05:00
parent e2e261f1c0
commit 44bee1f553
16 changed files with 200 additions and 160 deletions
+11 -2
View File
@@ -66,7 +66,15 @@ public:
void setDemodulatorType(int demod_type_in);
int getDemodulatorType();
void setBandwidth(int bw);
int getBandwidth();
void setFrequency(unsigned int freq);
int getFrequency();
private:
void checkBandwidth();
std::atomic<std::string *> label; //
bool terminated; //
bool demodTerminated; //
@@ -77,5 +85,6 @@ private:
std::atomic<bool> stereo;
int currentDemodType;
};
int currentBandwidth;
int currentFrequency;
};