aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makemhr/loaddef.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-28 10:54:47 -0800
committerChris Robinson <[email protected]>2019-11-28 10:54:47 -0800
commitc093728ced2da0eb5fb01235c62460262b704790 (patch)
tree8ff77170d197628875f5af3fda7c855fa2d244bf /utils/makemhr/loaddef.cpp
parent576adf06b16f6b1c88991970dce06fcabbb04f28 (diff)
Move the polyphase resampler to the common lib
Diffstat (limited to 'utils/makemhr/loaddef.cpp')
-rw-r--r--utils/makemhr/loaddef.cpp6
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};