summaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorAndrzej Rybczak <andrzej@rybczak.net>2020-12-13 18:04:32 +0100
committerAndrzej Rybczak <andrzej@rybczak.net>2020-12-13 18:04:32 +0100
commit261b23266de6d65fb8cbf2f02f85086134dcecf3 (patch)
tree571a80e2ddffd8fae6046bdf18996df94e5a9216 /src/screens
parent2f07252ed9bac2dece7800a030ddd93ffd1fc9c7 (diff)
Add visualizer_spectrum_gain option to a configuration file
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/visualizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/visualizer.cpp b/src/screens/visualizer.cpp
index 417c5326..1a146398 100644
--- a/src/screens/visualizer.cpp
+++ b/src/screens/visualizer.cpp
@@ -75,10 +75,10 @@ Visualizer::Visualizer()
,
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),
- DYNAMIC_RANGE(100),
+ DYNAMIC_RANGE(100-Config.visualizer_spectrum_gain),
HZ_MIN(Config.visualizer_spectrum_hz_min),
HZ_MAX(Config.visualizer_spectrum_hz_max),
- GAIN(0),
+ GAIN(Config.visualizer_spectrum_gain),
SMOOTH_CHARS(ToWString("▁▂▃▄▅▆▇█"))
#endif
{