Skip to content

Commit

Permalink
Let's try defining M_PI manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Jun 22, 2022
1 parent 53cc2dd commit 3e49cc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pipeline/ToneInterfererStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@
#include <cassert>
#include <cstring>
#include <cmath>
#include "../util.h"
#include "ToneInterfererStep.h"

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

ToneInterfererStep::ToneInterfererStep(
int sampleRate, std::function<float()> toneFrequencyFn,
std::function<float()> toneAmplitudeFn, std::function<float*()> tonePhaseFn)
Expand Down

0 comments on commit 3e49cc0

Please sign in to comment.