This commit is contained in:
AlexandreRouma
2022-06-20 18:15:35 +02:00
parent ce1b0d0170
commit 53afaeda9e
17 changed files with 90 additions and 29 deletions

View File

@ -100,6 +100,7 @@ namespace dsp::multirate {
for (int i = 0; i < stageCount; i++) {
tap<float> taps = taps::fromArray<float>(plan.stages[i].tapcount, plan.stages[i].taps);
auto fir = new filter::DecimatingFIR<T, float>(NULL, taps, plan.stages[i].decimation);
fir->out.free();
decimTaps.push_back(taps);
decimFirs.push_back(fir);
}

View File

@ -27,6 +27,9 @@ namespace dsp::multirate {
decim.init(NULL, 2);
resamp.init(NULL, 1, 1, rtaps);
decim.out.free();
resamp.out.free();
// Proper configuration
reconfigure();