From 62ca65490962e236cd40227e3950a534d0adcf5c Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Tue, 5 Jul 2022 22:12:52 -0700 Subject: [PATCH] Fix Windows build error. --- src/pipeline/ToneInterfererStep.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pipeline/ToneInterfererStep.cpp b/src/pipeline/ToneInterfererStep.cpp index ef5b6927..d6f94521 100644 --- a/src/pipeline/ToneInterfererStep.cpp +++ b/src/pipeline/ToneInterfererStep.cpp @@ -26,6 +26,11 @@ #include "ToneInterfererStep.h" +// M_PI is not available on some compilers, so define it here just in case. +#ifndef M_PI + #define M_PI 3.1415926535897932384626433832795 +#endif + ToneInterfererStep::ToneInterfererStep( int sampleRate, std::function toneFrequencyFn, std::function toneAmplitudeFn, std::function tonePhaseFn)