aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/filters/splitter.cpp6
-rw-r--r--Alc/filters/splitter.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Alc/filters/splitter.cpp b/Alc/filters/splitter.cpp
index 58a5029b..8b1a4db4 100644
--- a/Alc/filters/splitter.cpp
+++ b/Alc/filters/splitter.cpp
@@ -61,7 +61,7 @@ void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, c
}
template<typename Real>
-void BandSplitterR<Real>::applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count)
+void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const int count)
{
ASSUME(count > 0);
@@ -112,7 +112,7 @@ void SplitterAllpassR<Real>::init(Real f0norm)
}
template<typename Real>
-void SplitterAllpassR<Real>::process(Real *RESTRICT samples, int count)
+void SplitterAllpassR<Real>::process(Real *samples, int count)
{
ASSUME(count > 0);
@@ -120,7 +120,7 @@ void SplitterAllpassR<Real>::process(Real *RESTRICT samples, int count)
Real z1{this->z1};
auto proc_sample = [coeff,&z1](const Real in) noexcept -> Real
{
- Real out{in*coeff + z1};
+ const Real out{in*coeff + z1};
z1 = in - out*coeff;
return out;
};
diff --git a/Alc/filters/splitter.h b/Alc/filters/splitter.h
index ccb4f104..669d9d03 100644
--- a/Alc/filters/splitter.h
+++ b/Alc/filters/splitter.h
@@ -17,7 +17,7 @@ public:
void init(Real f0norm);
void clear() noexcept { lp_z1 = lp_z2 = ap_z1 = 0.0f; }
void process(Real *hpout, Real *lpout, const Real *input, const int count);
- void applyHfScale(Real *RESTRICT samples, const Real hfscale, const int count);
+ void applyHfScale(Real *samples, const Real hfscale, const int count);
};
using BandSplitter = BandSplitterR<float>;
@@ -32,7 +32,7 @@ class SplitterAllpassR {
public:
void init(Real f0norm);
void clear() noexcept { z1 = 0.0f; }
- void process(Real *RESTRICT samples, int count);
+ void process(Real *samples, int count);
};
using SplitterAllpass = SplitterAllpassR<float>;