diff options
author | Chris Robinson <[email protected]> | 2018-12-04 20:55:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-04 20:55:10 -0800 |
commit | 36a8b615c883ccc90705b97402e2e2046058720a (patch) | |
tree | 88e5fbe4968a730018b002b3fe93c12c74352d33 /Alc/filters/splitter.h | |
parent | 2a30ae3807134be37cf79139e7e7943df5b1bf64 (diff) |
Avoid using AL types with the filters
Diffstat (limited to 'Alc/filters/splitter.h')
-rw-r--r-- | Alc/filters/splitter.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h index 13f4cd55..96ecdb43 100644 --- a/Alc/filters/splitter.h +++ b/Alc/filters/splitter.h @@ -7,35 +7,35 @@ /* Band splitter. Splits a signal into two phase-matching frequency bands. */ struct BandSplitter { - ALfloat coeff{0.0f}; - ALfloat lp_z1{0.0f}; - ALfloat lp_z2{0.0f}; - ALfloat hp_z1{0.0f}; + float coeff{0.0f}; + float lp_z1{0.0f}; + float lp_z2{0.0f}; + float hp_z1{0.0f}; }; -void bandsplit_init(BandSplitter *splitter, ALfloat f0norm); +void bandsplit_init(BandSplitter *splitter, float f0norm); void bandsplit_clear(BandSplitter *splitter); -void bandsplit_process(BandSplitter *splitter, ALfloat *RESTRICT hpout, ALfloat *RESTRICT lpout, - const ALfloat *input, ALsizei count); +void bandsplit_process(BandSplitter *splitter, float *RESTRICT hpout, float *RESTRICT lpout, + const float *input, int count); /* The all-pass portion of the band splitter. Applies the same phase shift * without splitting the signal. */ struct SplitterAllpass { - ALfloat coeff{0.0f}; - ALfloat z1{0.0f}; + float coeff{0.0f}; + float z1{0.0f}; }; -void splitterap_init(SplitterAllpass *splitter, ALfloat f0norm); +void splitterap_init(SplitterAllpass *splitter, float f0norm); void splitterap_clear(SplitterAllpass *splitter); -void splitterap_process(SplitterAllpass *splitter, ALfloat *RESTRICT samples, ALsizei count); +void splitterap_process(SplitterAllpass *splitter, float *RESTRICT samples, int count); struct FrontStablizer { SplitterAllpass APFilter[MAX_OUTPUT_CHANNELS]; BandSplitter LFilter, RFilter; - alignas(16) ALfloat LSplit[2][BUFFERSIZE]; - alignas(16) ALfloat RSplit[2][BUFFERSIZE]; + alignas(16) float LSplit[2][BUFFERSIZE]; + alignas(16) float RSplit[2][BUFFERSIZE]; DEF_NEWDEL(FrontStablizer) }; |