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/loaddef.cpp | |
parent | 576adf06b16f6b1c88991970dce06fcabbb04f28 (diff) |
Move the polyphase resampler to the common lib
Diffstat (limited to 'utils/makemhr/loaddef.cpp')
-rw-r--r-- | utils/makemhr/loaddef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/makemhr/loaddef.cpp b/utils/makemhr/loaddef.cpp index 619f5104..63014fe5 100644 --- a/utils/makemhr/loaddef.cpp +++ b/utils/makemhr/loaddef.cpp @@ -1710,9 +1710,9 @@ static double AverageHrirOnset(const uint rate, const uint n, const double *hrir { std::vector<double> upsampled(10 * n); { - 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{0.0}; |