diff options
author | David Robillard <d@drobilla.net> | 2012-11-18 04:59:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-11-18 04:59:01 +0000 |
commit | d9d5f5d38b4c14c3560bbdff1ce1f4d0324187d9 (patch) | |
tree | 55cbac4478081c9b36394b504230aa2d9932559e /src | |
parent | a48ca719b7261a078cb6635f950975a38b8605c3 (diff) | |
download | ingen-d9d5f5d38b4c14c3560bbdff1ce1f4d0324187d9.tar.gz ingen-d9d5f5d38b4c14c3560bbdff1ce1f4d0324187d9.tar.bz2 ingen-d9d5f5d38b4c14c3560bbdff1ce1f4d0324187d9.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/server/InputPort.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; |