Skip to content

Commit

Permalink
Merge pull request #1401 from gqrx-sdr/fix-ddc-samp-rate
Browse files Browse the repository at this point in the history
Rebuild DDC block when sample rate changes
  • Loading branch information
argilo authored Nov 13, 2024
2 parents 7df7b1a + 2c5c1c4 commit 100589b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
IMPROVED: Reduced CPU utilization of plot and waterfall display.
IMPROVED: Display and formatting of RDS data.
FIXED: Decoding of RDS flags.
FIXED: Incorrect channel filter offset, for some devices.
CHANGED: x86 DMG release requires macOS 13.7 or later.


Expand Down
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 100589b

Please sign in to comment.