]> git.sesse.net Git - nageru/blobdiff - nageru/correlation_measurer.cpp
Fix a Clang 19 warning.
[nageru] / nageru / correlation_measurer.cpp
index d0150a03830d7870fb77aef6bbd17132aa7d954b..0fa4749cbba3a849a0f2b329b7849dec0f3ba30e 100644 (file)
 #include <assert.h>
 #include <cmath>
 #include <cstddef>
+#include <math.h>
+#include <vector>
 
 using namespace std;
 
 CorrelationMeasurer::CorrelationMeasurer(unsigned sample_rate,
                                          float lowpass_cutoff_hz,
-                                        float falloff_seconds)
+                                         float falloff_seconds)
     : w1(2.0 * M_PI * lowpass_cutoff_hz / sample_rate),
       w2(1.0 / (falloff_seconds * sample_rate))
 {