diff options
author | David Robillard <d@drobilla.net> | 2012-08-11 16:23:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-11 16:23:56 +0000 |
commit | 885c186ed6427e7912faadfad7cc91692092efcb (patch) | |
tree | 4089c1fff96e4e051fa732cf54c0e79ca06f5bc8 /src/server | |
parent | 27a7db9c0055475adb3488cea2e7cf9800728a0d (diff) | |
download | ingen-885c186ed6427e7912faadfad7cc91692092efcb.tar.gz ingen-885c186ed6427e7912faadfad7cc91692092efcb.tar.bz2 ingen-885c186ed6427e7912faadfad7cc91692092efcb.zip |
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
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/InputPort.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
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; |