From d9d5f5d38b4c14c3560bbdff1ce1f4d0324187d9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Nov 2012 04:59:01 +0000 Subject: Don't broadcast CV inputs connected to audio outputs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4833 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/InputPort.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 49ffaf2d..a272b305 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -124,7 +124,9 @@ void InputPort::add_edge(ProcessContext& context, EdgeImpl* c) { _edges.push_front(*c); - _broadcast = true; // Broadcast value/activity of connected input + if (_type != PortType::CV) { + _broadcast = true; // Broadcast value/activity of connected input + } } /** Remove a edge. Realtime safe. @@ -150,7 +152,7 @@ InputPort::remove_edge(ProcessContext& context, const OutputPort* tail) } if (_edges.empty()) { - _broadcast = false; // Turn off broadcasting if no longer connected + _broadcast = false; // Turn off broadcasting if no longer connected } return edge; -- cgit v1.2.1