From 885c186ed6427e7912faadfad7cc91692092efcb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 11 Aug 2012 16:23:56 +0000 Subject: Reset peaks on disconnected inputs on the client side, reducing bandwidth and fixing a notification race crash caused on deletion. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4656 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/InputPort.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/server/InputPort.cpp') diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 0ded3e5b..48b79822 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -149,17 +149,8 @@ InputPort::remove_edge(ProcessContext& context, const OutputPort* tail) return NULL; } - // Turn off broadcasting if we're no longer connected if (_edges.empty()) { - if (is_a(PortType::AUDIO)) { - // Send an update peak of 0.0 to reset to silence - const Raul::Atom z = context.engine().world()->forge().make(0.0f); - context.notify(context.engine().world()->uris().ingen_activity, - context.start(), - this, - z.size(), z.type(), z.get_body()); - } - _broadcast = false; + _broadcast = false; // Turn off broadcasting if no longer connected } return edge; -- cgit v1.2.1