diff options
author | Chris Robinson <[email protected]> | 2019-07-29 19:40:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-29 19:40:03 -0700 |
commit | 06e5454eb9cd0d61fca25de7079d0b036d34b037 (patch) | |
tree | 01e72f0b12bd316bc63fb6e6138e2c613ed97595 /alc/bs2b.h | |
parent | 4c9e18c5a0c29548eb38db636785aa7064713c5d (diff) |
Use Transposed Direct Form II for the BS2B filters
Diffstat (limited to 'alc/bs2b.h')
-rw-r--r-- | alc/bs2b.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -57,14 +57,13 @@ struct bs2b { float a1_hi; float b1_hi; - /* Buffer of last filtered sample. + /* Buffer of filter history * [0] - first channel, [1] - second channel */ struct t_last_sample { - float asis; float lo; float hi; - } last_sample[2]; + } history[2]; DEF_NEWDEL(bs2b) }; @@ -85,6 +84,6 @@ int bs2b_get_srate(bs2b *bs2b); /* Clear buffer */ void bs2b_clear(bs2b *bs2b); -void bs2b_cross_feed(bs2b *bs2b, float *RESTRICT Left, float *RESTRICT Right, int SamplesToDo); +void bs2b_cross_feed(bs2b *bs2b, float *Left, float *Right, int SamplesToDo); #endif /* BS2B_H */ |