36 srHigh = (srHigh <= 100 ? 100 : srHigh);
37 srLow = (srLow <= 0 ? 1 : srLow);
38 srLow = srLow > srHigh - 50 ? srHigh - 50 : srLow;
40 fcLow = fcLow < 0 ? 0 : fcLow;
41 fcHigh = fcHigh < 100 ? 100 : fcHigh;
42 fcLow = fcLow > fcHigh - 100 ? fcHigh - 100 : fcLow;
58 sampleOut = lpSample * 32768.0f;
83 sampleOut = lpSample * 32768.0f;
90 sampleOut = lpSample * 32768.0f;
bool upSample(qint16 sampleIn, qint16 &sampleOut)
int decimation(float Fin, float Fout)
void setAudioFilters(int srHigh, int srLow, int fcLow, int fcHigh, float gain=1.0f)
void setDecimation(uint32_t decimation)
uint32_t m_decimationCount
AudioFilter m_audioFilter
float run(const float &sample)
void setDecimFilters(int srHigh, int srLow, float fcHigh, float fcLow, float gain=1.0f)
bool downSample(qint16 sampleIn, qint16 &sampleOut)