From e203132d8439033be91d2cc9c4ec71d6632eab10 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Oct 2015 22:30:11 +0000 Subject: Fix bypass where mixing is required Fixes #1058 git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5804 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BlockImpl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp index 103747fe..bf4ef0f8 100644 --- a/src/server/BlockImpl.cpp +++ b/src/server/BlockImpl.cpp @@ -194,6 +194,12 @@ BlockImpl::process(ProcessContext& context) pre_process(context); if (!_enabled) { + // Prepare port buffers for reading, converting/mixing if necessary + for (uint32_t i = 0; _ports && i < _ports->size(); ++i) { + _ports->at(i)->connect_buffers(); + _ports->at(i)->pre_run(context); + } + // Dumb bypass for (PortType t : { PortType::AUDIO, PortType::CV, PortType::ATOM }) { for (uint32_t i = 0;; ++i) { -- cgit v1.2.1