Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit caaf280

Browse files
author
Amsakan Bavan
committed
Added macro to differentiate between operating systems in Filter Class
1 parent 0fdfa36 commit caaf280

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Filter/Filter.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
//
44
#include "Filter.hh"
55

6-
76
#include <complex>
7+
8+
#ifdef _WIN32
9+
#include <corecrt_math_defines.h>
10+
#elif
811
#include <math.h>
12+
#endif
913

1014
void Filter::filter(std::vector<float>& audio, float filterFrequency) {
1115
std::vector<std::complex<float>> frequencyBins;

0 commit comments

Comments
 (0)