summaryrefslogtreecommitdiff
path: root/src/inputprocessor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r--src/inputprocessor.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index 5d96e2d..1dbd79e 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -39,14 +39,15 @@
InputProcessor::InputProcessor(Settings& settings,
DrumKit& kit,
- std::list<Event*>* activeevents)
+ std::list<Event*>* activeevents,
+ Random& random)
: kit(kit)
, activeevents(activeevents)
, is_stopping(false)
{
// Build filter list
filters.emplace_back(std::make_unique<StaminaFilter>(settings));
- filters.emplace_back(std::make_unique<LatencyFilter>(settings));
+ filters.emplace_back(std::make_unique<LatencyFilter>(settings, random));
}
bool InputProcessor::process(std::vector<event_t>& events,