diff --git a/firmware/baseband/linear_resampler.hpp b/firmware/baseband/linear_resampler.hpp index f481c94b..2de41f2c 100644 --- a/firmware/baseband/linear_resampler.hpp +++ b/firmware/baseband/linear_resampler.hpp @@ -52,13 +52,13 @@ public: while( phase < 1.0f ) { const float interpolated_value = last_sample + phase * sample_delta; interpolated_sample_handler(interpolated_value); - advance(); + phase += phase_increment; } last_sample = sample; phase -= 1.0f; } - void advance(const float fraction = 1.0f) { + void advance(const float fraction) { phase += (fraction * phase_increment); }