diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 14:35:30 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 14:35:55 +0100 |
commit | cff792bb7e9a1c72358ed52fff9945bc9105775f (patch) | |
tree | de1ae68bbef3ef5302e41416096e0707ab68ecd3 /src/screens | |
parent | b602b198cd7766c8293af25ef089664848d3b9f2 (diff) |
Improve look for bigger values of dft_size
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/visualizer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/screens/visualizer.cpp b/src/screens/visualizer.cpp index b8ef20c3..497e467b 100644 --- a/src/screens/visualizer.cpp +++ b/src/screens/visualizer.cpp @@ -52,8 +52,6 @@ Visualizer *myVisualizer; namespace { -const uint32_t MIN_DFT_SIZE = 14; - // toColor: a scaling function for coloring. For numbers 0 to max this function // returns a coloring from the lowest color to the highest, and colors will not // loop from 0 to max. @@ -73,7 +71,7 @@ Visualizer::Visualizer() # ifdef HAVE_FFTW3_H , DFT_NONZERO_SIZE(1 << Config.visualizer_spectrum_dft_size), - DFT_TOTAL_SIZE(Config.visualizer_spectrum_dft_size >= MIN_DFT_SIZE ? 1 << (Config.visualizer_spectrum_dft_size) : 1<<MIN_DFT_SIZE), + DFT_TOTAL_SIZE(1 << (Config.visualizer_spectrum_dft_size + 2)), DYNAMIC_RANGE(100-Config.visualizer_spectrum_gain), HZ_MIN(Config.visualizer_spectrum_hz_min), HZ_MAX(Config.visualizer_spectrum_hz_max), |