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/DuplexPort.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/libs/engine/DuplexPort.cpp') diff --git a/src/libs/engine/DuplexPort.cpp b/src/libs/engine/DuplexPort.cpp index 6c195e87..6297a9be 100644 --- a/src/libs/engine/DuplexPort.cpp +++ b/src/libs/engine/DuplexPort.cpp @@ -40,12 +40,12 @@ DuplexPort::DuplexPort(Node* parent, const string& name, uint32_t index, uint32_ void -DuplexPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end) +DuplexPort::pre_process(ProcessContext& context) { // Think about it... // if (_is_output) { - InputPort::pre_process(nframes, start, end); + InputPort::pre_process(context); // } else { //for (uint32_t i=0; i < _poly; ++i) // _buffers->at(i)->rewind(); @@ -53,21 +53,16 @@ DuplexPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end) // } } -void -DuplexPort::process(ProcessContext& context, SampleCount nframes, FrameTime start, FrameTime end) -{ -} - void -DuplexPort::post_process(SampleCount nframes, FrameTime start, FrameTime end) +DuplexPort::post_process(ProcessContext& context) { // Think about it... // if (_is_output) // InputPort::pre_process(nframes, start, end); //else - OutputPort::pre_process(nframes, start, end); + OutputPort::pre_process(context); } -- cgit v1.2.1