Change baseband audio processing pipeline to all floats.

This commit is contained in:
Jared Boone 2016-01-11 16:15:42 -08:00
parent b9f124850b
commit 55e3a70fde
12 changed files with 90 additions and 56 deletions

View file

@ -31,13 +31,13 @@
class FMSquelch {
public:
bool execute(const buffer_s16_t& audio);
bool execute(const buffer_f32_t& audio);
void set_threshold(const uint32_t new_value);
void set_threshold(const float new_value);
private:
static constexpr size_t N = 32;
uint32_t threshold_squared { 0 };
float threshold_squared { 0.0f };
IIRBiquadFilter non_audio_hpf { non_audio_hpf_config };
};