mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-17 13:14:18 -05:00
Squelch special case when threshold == 0, do not squelch.
This commit is contained in:
parent
01df79641c
commit
5dac0bbe49
@ -25,6 +25,10 @@
|
||||
#include <array>
|
||||
|
||||
bool FMSquelch::execute(const buffer_s16_t& audio) {
|
||||
if( threshold_squared == 0 ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// TODO: No hard-coded array size.
|
||||
std::array<int16_t, N> squelch_energy_buffer;
|
||||
const buffer_s16_t squelch_energy {
|
||||
|
Loading…
x
Reference in New Issue
Block a user