From 27bd4bff5e2a3b4fd0691eac3edd4854f5c66149 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 14 Dec 2020 17:36:27 +0100 Subject: [PATCH] Fix look of the ellipse visualizer with high fps --- src/screens/visualizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens/visualizer.cpp b/src/screens/visualizer.cpp index 075f5b94..ce0f3eca 100644 --- a/src/screens/visualizer.cpp +++ b/src/screens/visualizer.cpp @@ -615,7 +615,8 @@ void Visualizer::SetVisualizationType() break; # endif // HAVE_FFTW3_H case VisualizerType::Ellipse: - m_read_samples = 44100 / Config.visualizer_fps; + // Keep constant amount of samples on the screen regardless of fps. + m_read_samples = 44100 / 25; draw = &Visualizer::DrawSoundEllipse; drawStereo = &Visualizer::DrawSoundEllipseStereo; break;