summaryrefslogtreecommitdiff
path: root/src/inputprocessor.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-10-14 15:24:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-02-18 11:43:40 +0100
commit0dc69ba161bb0c8fce2eb0ab3c5eb897f7aa92a7 (patch)
treed33fcf6f429124cd551177e3d28aa3ac7bc29272 /src/inputprocessor.cc
parent3515fe8b970bd7cd849ea44e24bc01331e894314 (diff)
Implemented engine part of the latency filter aka. humized timing.
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,