Skip to content

Commit

Permalink
Don't lock the buffer mutex while changing FFT size
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Jan 15, 2022
1 parent 3bfd547 commit 946b43a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 0 additions & 4 deletions src/dsp/rx_fft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> lock(d_mutex);

/* reset window */
int wintype = d_wintype; // FIXME: would be nicer with a window_reset()
d_wintype = -1;
Expand Down Expand Up @@ -365,8 +363,6 @@ void rx_fft_f::set_fft_size(unsigned int fftsize)
{
if (fftsize != d_fftsize)
{
std::lock_guard<std::mutex> lock(d_mutex);

d_fftsize = fftsize;

/* reset window */
Expand Down

0 comments on commit 946b43a

Please sign in to comment.