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

@@ -22,6 +22,9 @@ namespace dsp::demod {
carrierAgc.init(NULL, 1.0, agcAttack, agcDecay, 10e6, 10.0);
audioAgc.init(NULL, 1.0, agcAttack, agcDecay, 10e6, 10.0);
dcBlock.init(NULL, dcBlockRate);
audioAgc.out.free();
dcBlock.out.free();
base_type::init(in);
}

View File

@@ -52,6 +52,11 @@ namespace dsp::demod {
l = buffer::alloc<float>(STREAM_BUFFER_SIZE);
r = buffer::alloc<float>(STREAM_BUFFER_SIZE);
lprDelay.out.free();
lmrDelay.out.free();
arFir.out.free();
alFir.out.free();
base_type::init(in);
}

View File

@@ -22,8 +22,12 @@ namespace dsp::demod {
_mode = mode;
_bandwidth = bandwidth;
_samplerate = samplerate;
xlator.init(NULL, getTranslation(), _samplerate);
agc.init(NULL, 1.0, agcAttack, agcDecay, 10e6, 10.0);
agc.out.free();
base_type::init(in);
}