More DSP cleanup + Remove FastFFT option because it should never be used

This commit is contained in:
AlexandreRouma
2022-07-27 21:35:36 +02:00
parent 8efd5cd01a
commit 575a941e24
25 changed files with 335 additions and 86 deletions

View File

@ -1,6 +1,6 @@
#pragma once
#include "../processor.h"
#include "../math/norm_phase_diff.h"
#include "../math/normalize_phase.h"
#include "../math/phasor.h"
#include "phase_control_loop.h"
@ -64,7 +64,7 @@ namespace dsp::loop {
virtual inline int process(int count, complex_t* in, complex_t* out) {
for (int i = 0; i < count; i++) {
out[i] = math::phasor(pcl.phase);
pcl.advance(math::normPhaseDiff(in[i].phase() - pcl.phase));
pcl.advance(math::normalizePhase(in[i].phase() - pcl.phase));
}
return count;
}