This commit is contained in:
AlexandreRouma
2022-06-20 18:15:35 +02:00
parent ce1b0d0170
commit 53afaeda9e
17 changed files with 90 additions and 29 deletions

View File

@@ -10,8 +10,16 @@ namespace dsp::noise_reduction {
Squelch(stream<complex_t>* in, double level) {}
~Squelch() {
if (!base_type::_block_init) { return; }
buffer::free(normBuffer);
}
void init(stream<complex_t>* in, double level) {
_level = level;
normBuffer = buffer::alloc<float>(STREAM_BUFFER_SIZE);
base_type::init(in);
}