Fix look of the ellipse visualizer with high fps

This commit is contained in:
Andrzej Rybczak
2020-12-14 17:36:27 +01:00
parent b5bea554b6
commit 27bd4bff5e

View File

@@ -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;