Skip to content

Commit

Permalink
Merge pull request #1265 from willcode/fix/hang-on-narrow-filter
Browse files Browse the repository at this point in the history
nbrx: set minimum buffer size for input to rx_filter
  • Loading branch information
argilo authored Jul 24, 2023
2 parents 484917c + 7093dc9 commit b886467
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
FIXED: Frequency is correctly rounded in I/Q filenames.
FIXED: Crash in AFSK1200 decoder.
FIXED: Y axis in saved waterfall is too narrow.
FIXED: Hang when setting a very narrow filter width.


2.16: Released April 28, 2023
Expand Down
6 changes: 6 additions & 0 deletions src/receivers/nbrx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ nbrx::nbrx(float quad_rate, float audio_rate)
demod_am = make_rx_demod_am(PREF_QUAD_RATE, true);
demod_amsync = make_rx_demod_amsync(PREF_QUAD_RATE, true, 0.001);

// Width of rx_filter can be adjusted at run time, so the input buffer (the
// output buffer of nb) needs to be large enough for the longest history
// required by the filter (Narrow/Sharp). This setting may not be reliable
// for GR prior to v3.10.7.0.
nb->set_min_output_buffer(32768);

audio_rr0.reset();
audio_rr1.reset();
if (d_audio_rate != PREF_QUAD_RATE)
Expand Down

0 comments on commit b886467

Please sign in to comment.