44 |
* between multiple filters. |
* between multiple filters. |
45 |
*/ |
*/ |
46 |
struct biquad_param_t { |
struct biquad_param_t { |
|
bq_t a1; |
|
|
bq_t a2; |
|
47 |
bq_t b0; |
bq_t b0; |
48 |
bq_t b1; |
bq_t b1; |
49 |
bq_t b2; |
bq_t b2; |
50 |
|
bq_t a1; |
51 |
|
bq_t a2; |
52 |
}; |
}; |
53 |
|
|
54 |
/** |
/** |
58 |
class BiquadFilter { |
class BiquadFilter { |
59 |
protected: |
protected: |
60 |
// following five variables are only used if no external biquad_param_t reference is used |
// following five variables are only used if no external biquad_param_t reference is used |
|
bq_t a1; |
|
|
bq_t a2; |
|
61 |
bq_t b0; |
bq_t b0; |
62 |
bq_t b1; |
bq_t b1; |
63 |
bq_t b2; |
bq_t b2; |
64 |
|
bq_t a1; |
65 |
|
bq_t a2; |
66 |
// following four variables are used to buffer the feedback |
// following four variables are used to buffer the feedback |
67 |
bq_t x1; |
bq_t x1; |
68 |
bq_t x2; |
bq_t x2; |