diff --git a/SignalProcessing/FIRFilter.hpp b/SignalProcessing/FIRFilter.hpp index c2f91cd18..23f7fd3ca 100644 --- a/SignalProcessing/FIRFilter.hpp +++ b/SignalProcessing/FIRFilter.hpp @@ -11,6 +11,7 @@ #ifdef __APPLE__ #include +#define USE_ACCELERATE #endif #include @@ -50,7 +51,7 @@ class FIRFilter { @returns The result of applying the filter. */ inline short apply(const short *src, size_t stride = 1) const { - #ifdef __APPLE__ + #ifdef USE_ACCELERATE short result; vDSP_dotpr_s1_15(filter_coefficients_.data(), 1, src, vDSP_Stride(stride), &result, filter_coefficients_.size()); return result;