diff options
author | Chris Robinson <[email protected]> | 2019-08-03 13:05:42 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-03 13:05:42 -0700 |
commit | 13222d719d7a38b46cf0b02771acffea5d569d46 (patch) | |
tree | 89b2fcdef867c1872acdf8b0058b63d448323dd1 /alc/filters | |
parent | 341743680415c4b3339d36fc4e67ab8a605a06ea (diff) |
Make a couple counts size_t
Diffstat (limited to 'alc/filters')
-rw-r--r-- | alc/filters/splitter.cpp | 6 | ||||
-rw-r--r-- | alc/filters/splitter.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/alc/filters/splitter.cpp b/alc/filters/splitter.cpp index 7463d795..66806ea9 100644 --- a/alc/filters/splitter.cpp +++ b/alc/filters/splitter.cpp @@ -27,7 +27,7 @@ void BandSplitterR<Real>::init(Real f0norm) } template<typename Real> -void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, const int count) +void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, const size_t count) { ASSUME(count > 0); @@ -63,7 +63,7 @@ void BandSplitterR<Real>::process(Real *hpout, Real *lpout, const Real *input, c } template<typename Real> -void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const int count) +void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const size_t count) { ASSUME(count > 0); @@ -97,7 +97,7 @@ void BandSplitterR<Real>::applyHfScale(Real *samples, const Real hfscale, const } template<typename Real> -void BandSplitterR<Real>::applyAllpass(Real *samples, const int count) const +void BandSplitterR<Real>::applyAllpass(Real *samples, const size_t count) const { ASSUME(count > 0); diff --git a/alc/filters/splitter.h b/alc/filters/splitter.h index d7b0240d..52bda713 100644 --- a/alc/filters/splitter.h +++ b/alc/filters/splitter.h @@ -22,15 +22,15 @@ 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 process(Real *hpout, Real *lpout, const Real *input, const size_t count); - void applyHfScale(Real *samples, const Real hfscale, const int count); + void applyHfScale(Real *samples, const Real hfscale, const size_t count); /* The all-pass portion of the band splitter. Applies the same phase shift * without splitting the signal. Note that each use of this method is * indepedent, it does not track history between calls. */ - void applyAllpass(Real *samples, const int count) const; + void applyAllpass(Real *samples, const size_t count) const; }; using BandSplitter = BandSplitterR<float>; |