Skip to content

Commit

Permalink
Rebuild DDC block when sample rate changes
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Nov 13, 2024
1 parent 7df7b1a commit 8fabee2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/dsp/downconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ downconverter_cc::~downconverter_cc()
void downconverter_cc::set_decim_and_samp_rate(unsigned int decim, double samp_rate)
{
d_samp_rate = samp_rate;
if (decim != d_decim)
{
d_decim = decim;
lock();
disconnect_all();
connect_all();
unlock();
}
d_decim = decim;

lock();
disconnect_all();
connect_all();
unlock();

update_proto_taps();
update_phase_inc();
}
Expand Down

0 comments on commit 8fabee2

Please sign in to comment.