From df052d5e389426eaa19bae74c947f3449bb164da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Pr=C3=A4ntare?= Date: Wed, 23 Mar 2022 23:31:38 +0100 Subject: [PATCH] Fix easy .clang-tidy complaints (PCM.hpp) --- src/libprojectM/PCM.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libprojectM/PCM.hpp b/src/libprojectM/PCM.hpp index cc5eeabdd..ae89324d7 100755 --- a/src/libprojectM/PCM.hpp +++ b/src/libprojectM/PCM.hpp @@ -31,7 +31,7 @@ #include #include -#include +#include // FFT_LENGTH is number of magnitude values available from getSpectrum(). @@ -73,7 +73,7 @@ public: */ void GetSpectrum(float* data, CHANNEL channel, size_t samples, float smoothing); - static Test* MakeTest(); + static auto MakeTest() -> Test*; private: // mem-usage: @@ -114,7 +114,7 @@ private: class AutoLevel { public: - double UpdateLevel(size_t samples, double sum, double max); + auto UpdateLevel(size_t samples, double sum, double max) -> double; private: double m_level{0.01}; @@ -128,8 +128,8 @@ private: }; // state for tracking audio level - double m_level; - AutoLevel m_leveler; + double m_level{1.f}; + AutoLevel m_leveler{}; }; #endif /** !_PCM_H */