From e853d3dfcf450f6160e19f20b6b67e251c906169 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 24 Feb 2010 23:12:34 +0000 Subject: Add new Delay internal. Preliminary work towards split cycles. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2485 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/NodeBase.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/engine/NodeBase.cpp') diff --git a/src/engine/NodeBase.cpp b/src/engine/NodeBase.cpp index ca9103da..967f7d3c 100644 --- a/src/engine/NodeBase.cpp +++ b/src/engine/NodeBase.cpp @@ -216,8 +216,10 @@ NodeBase::pre_process(Context& context) // Mix down input ports for (uint32_t i = 0; i < num_ports(); ++i) { PortImpl* const port = _ports->at(i); - if (port->context() == Context::AUDIO) + if (port->context() == Context::AUDIO) { port->pre_process(context); + port->connect_buffers(context.offset()); + } } } @@ -266,10 +268,11 @@ NodeBase::reset_valid_ports() void -NodeBase::set_port_buffer(uint32_t voice, uint32_t port_num, BufferFactory::Ref buf) +NodeBase::set_port_buffer(uint32_t voice, uint32_t port_num, + BufferFactory::Ref buf, SampleCount offset) { - /*debug << path() << " set port " << port_num << " voice " << voice - << " buffer " << buf << endl;*/ + /*std::cout << path() << " set port " << port_num << " voice " << voice + << " buffer " << buf << " offset " << offset << std::endl;*/ } -- cgit v1.2.1