diff options
author | Chris Robinson <[email protected]> | 2019-11-28 10:54:47 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-28 10:54:47 -0800 |
commit | c093728ced2da0eb5fb01235c62460262b704790 (patch) | |
tree | 8ff77170d197628875f5af3fda7c855fa2d244bf /utils/makemhr/loadsofa.cpp | |
parent | 576adf06b16f6b1c88991970dce06fcabbb04f28 (diff) |
Move the polyphase resampler to the common lib
Diffstat (limited to 'utils/makemhr/loadsofa.cpp')
-rw-r--r-- | utils/makemhr/loadsofa.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/makemhr/loadsofa.cpp b/utils/makemhr/loadsofa.cpp index c91613c8..473109fe 100644 --- a/utils/makemhr/loadsofa.cpp +++ b/utils/makemhr/loadsofa.cpp @@ -443,9 +443,9 @@ static double CalcHrirOnset(const uint rate, const uint n, std::vector<double> & const double *hrir) { { - ResamplerT rs; - ResamplerSetup(&rs, rate, 10 * rate); - ResamplerRun(&rs, n, hrir, 10 * n, upsampled.data()); + PPhaseResampler rs; + rs.init(rate, 10 * rate); + rs.process(n, hrir, 10 * n, upsampled.data()); } double mag{std::accumulate(upsampled.cbegin(), upsampled.cend(), double{0.0}, |