From fb992677cf62b6aa982476538faae43e5bbbd87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 12 Jan 2020 15:41:39 +0100 Subject: Introduce EventsDS to handle all the events and enable new features. Also: * Added an id.h class to make IDs with type * Added a range class to easily use range based for loops --- src/inputprocessor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/inputprocessor.h') diff --git a/src/inputprocessor.h b/src/inputprocessor.h index 2101a25..98623d5 100644 --- a/src/inputprocessor.h +++ b/src/inputprocessor.h @@ -34,6 +34,8 @@ #include "drumkit.h" #include "events.h" +#include "events_ds.h" +#include "id.h" #include "inputfilter.h" struct Settings; @@ -44,7 +46,7 @@ class InputProcessor public: InputProcessor(Settings& settings, DrumKit& kit, - std::list* activeevents, + EventsDS& events_ds, Random& random); bool process(std::vector& events, @@ -55,7 +57,7 @@ public: private: DrumKit& kit; - std::list* activeevents; + EventsDS& events_ds; bool is_stopping; ///< Is set to true when a EventType::Stop event has been seen. bool processOnset(event_t& event, std::size_t pos, double resample_ratio); -- cgit v1.2.3