From eedcda48256831de49d7043355b837700bf64696 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Oct 2016 10:42:09 -0400 Subject: Fix running as LV2 with disconnected ports --- src/server/InputPort.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 3bc1ed95..5133758c 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -178,6 +178,10 @@ InputPort::pre_run(RunContext& context) const uint32_t max_n_srcs = _arcs.size() * src_poly + 1; for (uint32_t v = 0; v < _poly; ++v) { + if (!buffer(v)->get()) { + continue; + } + // Get all sources for this voice const Buffer* srcs[max_n_srcs]; uint32_t n_srcs = 0; -- cgit v1.2.1