diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 18:21:18 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 18:21:49 +0100 |
commit | b6a3823e83fde46a27db7b022175ebddeecddfbe (patch) | |
tree | e8d21b882752aa533180b7137f3a52127c92c313 | |
parent | 970ebe63fd8071b78a2cfb8c19326fc68b2a0af2 (diff) |
Set default visualizer to spectrum if fftw is available
-rw-r--r-- | doc/config | 2 | ||||
-rw-r--r-- | src/settings.cpp | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -82,7 +82,7 @@ # ## Available values: spectrum, wave, wave_filled, ellipse. ## -#visualizer_type = wave +#visualizer_type = spectrum # #visualizer_fps = 60 # diff --git a/src/settings.cpp b/src/settings.cpp index 30efb500..ee6d319d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -287,7 +287,13 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno lowerBoundCheck<unsigned>(sync_interval, 10); return boost::posix_time::seconds(sync_interval); }); - p.add("visualizer_type", &visualizer_type, "wave"); + p.add("visualizer_type", &visualizer_type, +#ifdef HAVE_FFTW3_H + "spectrum" +#else + "ellipse" +#endif + ); p.add("visualizer_look", &visualizer_chars, "●▮", [](std::string s) { auto result = ToWString(std::move(s)); boundsCheck<std::wstring::size_type>(result.size(), 2, 2); |