diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-04-24 13:01:04 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2016-04-24 23:20:44 +0200 |
commit | 2ff860a7f2c8fe5cf027d1d792f539ab8bb27fe6 (patch) | |
tree | 0ae68bac5d31a1f7259d47f1457096eb894017ee /src/inputprocessor.cc | |
parent | c2a9fd6efa4e137a30e157d442605bcfc947a967 (diff) |
Make activeevents a member of InputProcessor.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r-- | src/inputprocessor.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc index 789334b..a232e35 100644 --- a/src/inputprocessor.cc +++ b/src/inputprocessor.cc @@ -32,14 +32,15 @@ #include "instrument.h" -InputProcessor::InputProcessor(DrumKit& kit) +InputProcessor::InputProcessor(DrumKit& kit, std::list<Event*>* activeevents) : kit(kit) + , activeevents(activeevents) , is_stopping(false) { } -bool InputProcessor::process(const std::vector<event_t>& events, std::list<Event*>* activeevents, size_t pos, double resample_ratio) +bool InputProcessor::process(const std::vector<event_t>& events, size_t pos, double resample_ratio) { for(const auto& event: events) { |