From 52011c3b045d9f49a4bc25c9f545bb35e5c2a0a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 May 2012 07:04:11 +0000 Subject: More work towards checking contexts via parameter rather than thread magic. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4376 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PatchImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/PatchImpl.cpp') diff --git a/src/server/PatchImpl.cpp b/src/server/PatchImpl.cpp index dd20fbf1..9a21ee23 100644 --- a/src/server/PatchImpl.cpp +++ b/src/server/PatchImpl.cpp @@ -131,14 +131,14 @@ PatchImpl::apply_internal_poly(ProcessContext& context, for (uint32_t j = 0; j < (*i)->num_ports(); ++j) { PortImpl* const port = (*i)->port_impl(j); if (port->is_input() && dynamic_cast(port)->direct_connect()) - port->setup_buffers(bufs, port->poly()); + port->setup_buffers(context, bufs, port->poly()); port->connect_buffers(context.offset()); } } const bool polyphonic = parent_patch() && (poly == parent_patch()->internal_poly()); for (Ports::iterator i = _outputs.begin(); i != _outputs.end(); ++i) - (*i)->setup_buffers(bufs, polyphonic ? poly : 1); + (*i)->setup_buffers(context, bufs, polyphonic ? poly : 1); _internal_poly = poly; -- cgit v1.2.1