diff options
author | Chris Robinson <[email protected]> | 2018-12-08 00:08:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-08 00:08:39 -0800 |
commit | a603cc906f6fb50a2636350c0aa52bfddea55661 (patch) | |
tree | 39edea8c12364a993b97ac211dff072e5e6c9ae5 /Alc | |
parent | ab5a11d5f39024e7a41b75f26045e0ac9504589f (diff) |
Inline a simple method
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/filters/splitter.cpp | 7 | ||||
-rw-r--r-- | Alc/filters/splitter.h | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/Alc/filters/splitter.cpp b/Alc/filters/splitter.cpp index fb817d62..85122890 100644 --- a/Alc/filters/splitter.cpp +++ b/Alc/filters/splitter.cpp @@ -23,13 +23,6 @@ void BandSplitter::init(float f0norm) hp_z1 = 0.0f; } -void BandSplitter::clear() -{ - lp_z1 = 0.0f; - lp_z2 = 0.0f; - hp_z1 = 0.0f; -} - void BandSplitter::process(float *RESTRICT hpout, float *RESTRICT lpout, const float *input, int count) { ASSUME(count > 0); diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h index 6e3b5cbb..db31c138 100644 --- a/Alc/filters/splitter.h +++ b/Alc/filters/splitter.h @@ -14,7 +14,7 @@ class BandSplitter { public: void init(float f0norm); - void clear(); + void clear() noexcept { lp_z1 = lp_z2 = hp_z1 = 0.0f; } void process(float *RESTRICT hpout, float *RESTRICT lpout, const float *input, int count); }; |