diff options
author | Chris Robinson <[email protected]> | 2018-12-08 16:30:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 16:30:19 -0800 |
commit | 30a3a19574713c9ca939019d7fdea35912ad168a (patch) | |
tree | c8e7663e55d10cf167810a89a5893e7080ecaaca /Alc/filters/splitter.h | |
parent | c9f5617f06503d951b3ed808cf07fb6362a7f8d1 (diff) |
Rename a member variable and inline a function
Diffstat (limited to 'Alc/filters/splitter.h')
-rw-r--r-- | Alc/filters/splitter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h index db31c138..b39c3491 100644 --- a/Alc/filters/splitter.h +++ b/Alc/filters/splitter.h @@ -10,11 +10,11 @@ class BandSplitter { float coeff{0.0f}; float lp_z1{0.0f}; float lp_z2{0.0f}; - float hp_z1{0.0f}; + float ap_z1{0.0f}; public: void init(float f0norm); - void clear() noexcept { lp_z1 = lp_z2 = hp_z1 = 0.0f; } + void clear() noexcept { lp_z1 = lp_z2 = ap_z1 = 0.0f; } void process(float *RESTRICT hpout, float *RESTRICT lpout, const float *input, int count); }; @@ -27,7 +27,7 @@ class SplitterAllpass { public: void init(float f0norm); - void clear(); + void clear() noexcept { z1 = 0.0f; } void process(float *RESTRICT samples, int count); }; |