diff options
-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); |