mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-17 10:50:36 -04:00
Squelch special case when threshold == 0, do not squelch.
This commit is contained in:
parent
01df79641c
commit
5dac0bbe49
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue