diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-06 00:16:44 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-06 00:57:53 +0200 |
commit | f68d2e06bcfb81efda107d3b4c3aa7dbc2d73bc2 (patch) | |
tree | 286d5b2b1c3573c2fbfc77b4d29b0b2a6bfa9686 /libs/qm-dsp/dsp/signalconditioning/Filter.h | |
parent | 2a27cc475867612afd261e5bf3b2a1a42b9c75cc (diff) |
update qm-dsp library
Diffstat (limited to 'libs/qm-dsp/dsp/signalconditioning/Filter.h')
-rw-r--r-- | libs/qm-dsp/dsp/signalconditioning/Filter.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libs/qm-dsp/dsp/signalconditioning/Filter.h b/libs/qm-dsp/dsp/signalconditioning/Filter.h index b1c20d506a..9f25945fc1 100644 --- a/libs/qm-dsp/dsp/signalconditioning/Filter.h +++ b/libs/qm-dsp/dsp/signalconditioning/Filter.h @@ -20,13 +20,22 @@ #define NULL 0 #endif +/** + * Filter specification. For a filter of order ord, the ACoeffs and + * BCoeffs arrays must point to ord+1 values each. ACoeffs provides + * the denominator and BCoeffs the numerator coefficients of the + * filter. + */ struct FilterConfig{ unsigned int ord; double* ACoeffs; double* BCoeffs; }; -class Filter +/** + * Digital filter specified through FilterConfig structure. + */ +class Filter { public: Filter( FilterConfig Config ); @@ -36,7 +45,6 @@ public: void process( double *src, double *dst, unsigned int length ); - private: void initialise( FilterConfig Config ); void deInitialise(); |