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/Connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libs/engine/Connection.cpp') diff --git a/src/libs/engine/Connection.cpp b/src/libs/engine/Connection.cpp index 47893acb..fedd2198 100644 --- a/src/libs/engine/Connection.cpp +++ b/src/libs/engine/Connection.cpp @@ -23,6 +23,7 @@ #include "Port.hpp" #include "BufferFactory.hpp" #include "AudioBuffer.hpp" +#include "ProcessContext.hpp" namespace Ingen { @@ -110,10 +111,10 @@ Connection::apply_poly(Raul::Maid& maid, uint32_t poly) void -Connection::process(SampleCount nframes, FrameTime start, FrameTime end) +Connection::process(ProcessContext& context) { // FIXME: nframes parameter not used - assert(_buffer_size == 1 || _buffer_size == nframes); + assert(_buffer_size == 1 || _buffer_size == context.nframes()); /* Thought: A poly output port can be connected to multiple mono input * ports, which means this mix down would have to happen many times. -- cgit v1.2.1