diff options
author | David Robillard <d@drobilla.net> | 2007-09-30 21:12:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-30 21:12:16 +0000 |
commit | 399ddfc5b1d4f1f131362d0439821778c6681b23 (patch) | |
tree | e8ca2536fa251f474817d0575bc3b4747c494954 /src/libs/engine/PostProcessor.hpp | |
parent | c40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941 (diff) | |
download | ingen-399ddfc5b1d4f1f131362d0439821778c6681b23.tar.gz ingen-399ddfc5b1d4f1f131362d0439821778c6681b23.tar.bz2 ingen-399ddfc5b1d4f1f131362d0439821778c6681b23.zip |
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
Diffstat (limited to 'src/libs/engine/PostProcessor.hpp')
-rw-r--r-- | src/libs/engine/PostProcessor.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
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<Event*> _events; //virtual void _whipped(); |