summaryrefslogtreecommitdiffstats
path: root/src/server/InputPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 02:16:23 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 02:16:23 +0000
commitd049b582e1db60ee0f6fd02a40202145488c7288 (patch)
tree4b30ba2522a14863ce76f672f537dcca0c14c34e /src/server/InputPort.cpp
parent73a01c1bd8d6cf92522a433cd2b0bd491f2af99a (diff)
downloadingen-d049b582e1db60ee0f6fd02a40202145488c7288.tar.gz
ingen-d049b582e1db60ee0f6fd02a40202145488c7288.tar.bz2
ingen-d049b582e1db60ee0f6fd02a40202145488c7288.zip
Add option to enable/disable canvas animation (fix/avoid #879).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5016 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r--src/server/InputPort.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 9002dbab..0d1a2d0e 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -124,9 +124,6 @@ void
InputPort::add_arc(ProcessContext& context, ArcImpl* c)
{
_arcs.push_front(*c);
- if (_type != PortType::CV) {
- _broadcast = true; // Broadcast value/activity of connected input
- }
}
/** Remove a arc. Realtime safe.
@@ -151,10 +148,6 @@ InputPort::remove_arc(ProcessContext& context, const OutputPort* tail)
return NULL;
}
- if (_arcs.empty()) {
- _broadcast = false; // Turn off broadcasting if no longer connected
- }
-
return arc;
}
@@ -220,8 +213,9 @@ InputPort::pre_process(Context& context)
}
}
- if (_broadcast)
- broadcast_value(context, false);
+ if (!_arcs.empty()) {
+ monitor(context);
+ }
}
void