From 399ddfc5b1d4f1f131362d0439821778c6681b23 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 30 Sep 2007 21:12:16 +0000 Subject: Better design for process() signature (pass everything needed in a single object parameter). Working port "monitoring" (connect an output to a control input, GUI will animate controller). git-svn-id: http://svn.drobilla.net/lad/ingen@788 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/PostProcessor.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libs/engine/PostProcessor.hpp') diff --git a/src/libs/engine/PostProcessor.hpp b/src/libs/engine/PostProcessor.hpp index 114a8bef..cc19cdbe 100644 --- a/src/libs/engine/PostProcessor.hpp +++ b/src/libs/engine/PostProcessor.hpp @@ -28,6 +28,7 @@ namespace Ingen { class Event; +class Engine; /** Processor for Events after leaving the audio thread. @@ -44,7 +45,7 @@ class Event; class PostProcessor //: public Raul::Slave { public: - PostProcessor(/*Raul::Maid& maid, */size_t queue_size); + PostProcessor(Engine& engine, /*Raul::Maid& maid, */size_t queue_size); /** Push an event on to the process queue, realtime-safe, not thread-safe. */ inline void push(Event* const ev) { _events.push(ev); } @@ -52,7 +53,12 @@ public: /** Post-process and delete all pending events */ void process(); + /** Set the latest event time that should be post-processed */ + void set_end_time(FrameTime time) { _max_time = time; } + private: + Engine& _engine; + Raul::AtomicInt _max_time; //Raul::Maid& _maid; Raul::SRSWQueue _events; //virtual void _whipped(); -- cgit v1.2.1