From 62218e81bfb6496f1fe52aaa83140d8438a60170 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 8 Nov 2017 22:48:44 -0500 Subject: [PATCH] Fixes the FIR filter again from the Apple side. --- SignalProcessing/FIRFilter.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SignalProcessing/FIRFilter.hpp b/SignalProcessing/FIRFilter.hpp index 0fcb3a4cd..8f7afaf39 100644 --- a/SignalProcessing/FIRFilter.hpp +++ b/SignalProcessing/FIRFilter.hpp @@ -29,14 +29,15 @@ #ifdef __APPLE__ #include -#else -#define kCSKaiserBesselFilterFixedMultiplier 32767.0f -#define kCSKaiserBesselFilterFixedShift 15 #endif namespace SignalProcessing { class FIRFilter { + private: + static constexpr float kCSKaiserBesselFilterFixedMultiplier = 32767.0f; + static constexpr int kCSKaiserBesselFilterFixedShift = 15; + public: /*! Creates an instance of @c FIRFilter.