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/Port.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libs/engine/Port.hpp') diff --git a/src/libs/engine/Port.hpp b/src/libs/engine/Port.hpp index f02d6ba4..35bf0f9b 100644 --- a/src/libs/engine/Port.hpp +++ b/src/libs/engine/Port.hpp @@ -67,8 +67,9 @@ public: Buffer* buffer(uint32_t voice) const { return _buffers->at(voice); } /** Called once per process cycle */ - virtual void pre_process(SampleCount nframes, FrameTime start, FrameTime end) = 0; - virtual void post_process(SampleCount nframes, FrameTime start, FrameTime end) {}; + virtual void pre_process(ProcessContext& context) = 0; + virtual void process(ProcessContext& context) {}; + virtual void post_process(ProcessContext& context) = 0; /** Empty buffer contents completely (ie silence) */ virtual void clear_buffers(); -- cgit v1.2.1