mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-18 08:32:13 +00:00
Make FM squelch runtime-configurable.
This commit is contained in:
@@ -33,9 +33,11 @@ class FMSquelch {
|
||||
public:
|
||||
bool execute(buffer_s16_t audio);
|
||||
|
||||
void set_threshold(const uint32_t new_value);
|
||||
|
||||
private:
|
||||
static constexpr size_t N = 32;
|
||||
static constexpr uint32_t threshold_squared = 8192 * 8192;
|
||||
uint32_t threshold_squared { 0 };
|
||||
|
||||
IIRBiquadFilter non_audio_hpf { non_audio_hpf_config };
|
||||
};
|
||||
|
Reference in New Issue
Block a user