18 #ifndef INCLUDE_GPL_DSP_AFSQUELCH_H_ 19 #define INCLUDE_GPL_DSP_AFSQUELCH_H_ 38 unsigned int sampleRate,
39 unsigned int samplesAttack,
40 unsigned int samplesDecay,
44 void setThreshold(
double _threshold);
48 bool analyze(
double sample);
64 void feedback(
double sample);
unsigned int m_samplesAvgProcessed
const double * getToneSet() const
unsigned int m_maxPowerIndex
unsigned int m_squelchCount
std::vector< MovingAverage< double > > m_movingAverages
unsigned int m_samplesProcessed
unsigned int m_samplesAttack
unsigned int m_samplesDecay
unsigned int m_nbAvg
number of power samples taken for moving average
unsigned int m_attackCount
unsigned int m_decayCount
unsigned int m_sampleRate