From 946b43a504b7e6c225d63d6b7853b73e46c58412 Mon Sep 17 00:00:00 2001 From: Clayton Smith Date: Sat, 15 Jan 2022 18:01:13 -0500 Subject: [PATCH] Don't lock the buffer mutex while changing FFT size --- resources/news.txt | 5 +++++ src/dsp/rx_fft.cpp | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/news.txt b/resources/news.txt index 317cf047d..e2fb1bca0 100644 --- a/resources/news.txt +++ b/resources/news.txt @@ -1,4 +1,9 @@ + 2.15.4: In progress... + + FIXED: Audio is delayed when FFT size is changed. + + 2.15.3: Released January 15, 2022 FIXED: RDS receiver skips some messages. diff --git a/src/dsp/rx_fft.cpp b/src/dsp/rx_fft.cpp index 12d533b50..3534f7a4e 100644 --- a/src/dsp/rx_fft.cpp +++ b/src/dsp/rx_fft.cpp @@ -160,8 +160,6 @@ void rx_fft_c::apply_window(unsigned int size) /*! \brief Update circular buffer and FFT object. */ void rx_fft_c::set_params() { - std::lock_guard lock(d_mutex); - /* reset window */ int wintype = d_wintype; // FIXME: would be nicer with a window_reset() d_wintype = -1; @@ -365,8 +363,6 @@ void rx_fft_f::set_fft_size(unsigned int fftsize) { if (fftsize != d_fftsize) { - std::lock_guard lock(d_mutex); - d_fftsize = fftsize; /* reset window */