mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-15 18:00:28 -04:00
Change baseband audio processing pipeline to all floats.
This commit is contained in:
parent
b9f124850b
commit
55e3a70fde
12 changed files with 90 additions and 56 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue