From 64ed539554fc125de71eee92ce733e37ecc21d83 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 5 Oct 2015 11:55:08 -0700 Subject: [PATCH] Change LinearResampler.advance to external use only. --- firmware/baseband/linear_resampler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }