diff options
author | André Nusser <andre.nusser@googlemail.com> | 2019-07-22 20:57:26 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2019-07-22 20:58:00 +0200 |
commit | bf75eb9f0f11d4eae23dbb031f088877dfd5c125 (patch) | |
tree | 1aa429690ca33d7c52913d9db5d014d3a6cfce19 | |
parent | 8c3cbf3cd83701458d31eeb6a3c249366b47bcd1 (diff) |
Fix BSD build error.
-rw-r--r-- | src/inputprocessor.cc | 2 | ||||
-rw-r--r-- | src/velocityfilter.cc | 4 | ||||
-rw-r--r-- | src/velocityfilter.h | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 0439551..819a3c7 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -50,7 +50,7 @@ InputProcessor::InputProcessor(Settings& settings, // Build filter list filters.emplace_back(std::make_unique<StaminaFilter>(settings)); filters.emplace_back(std::make_unique<LatencyFilter>(settings, random)); - filters.emplace_back(std::make_unique<VelocityFilter>(settings, random, kit.instruments)); + filters.emplace_back(std::make_unique<VelocityFilter>(settings, random)); } bool InputProcessor::process(std::vector<event_t>& events, diff --git a/src/velocityfilter.cc b/src/velocityfilter.cc index 7b41045..a983692 100644 --- a/src/velocityfilter.cc +++ b/src/velocityfilter.cc @@ -29,8 +29,8 @@ #include "random.h" #include "settings.h" -VelocityFilter::VelocityFilter(Settings& settings, Random& random, Instruments const& instruments) - : settings(settings), random(random), instruments(instruments) +VelocityFilter::VelocityFilter(Settings& settings, Random& random) + : settings(settings), random(random) { } diff --git a/src/velocityfilter.h b/src/velocityfilter.h index 6b6d567..67271ce 100644 --- a/src/velocityfilter.h +++ b/src/velocityfilter.h @@ -40,7 +40,7 @@ class VelocityFilter : public InputFilter { public: - VelocityFilter(Settings& settings, Random& random, Instruments const& instruments); + VelocityFilter(Settings& settings, Random& random); bool filter(event_t& event, std::size_t pos) override; @@ -49,5 +49,4 @@ public: private: Settings& settings; Random& random; - Instruments const& instruments; }; |