diff options
author | David Robillard <d@drobilla.net> | 2012-07-17 22:36:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-07-17 22:36:55 +0000 |
commit | 5dcac50655a6635352e4542888e091bef515f865 (patch) | |
tree | 915b19f606b4221768287f9ca5903d5f35d19317 /src/server/InputPort.cpp | |
parent | c94231abbc601652e73423ec6e43a1e241024a17 (diff) | |
download | ingen-5dcac50655a6635352e4542888e091bef515f865.tar.gz ingen-5dcac50655a6635352e4542888e091bef515f865.tar.bz2 ingen-5dcac50655a6635352e4542888e091bef515f865.zip |
Wrap notification stuff behind simple API and hide details in Context.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4545 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r-- | src/server/InputPort.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 25059242..d94a971b 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -154,10 +154,10 @@ InputPort::remove_edge(ProcessContext& context, const OutputPort* tail) if (_edges.empty()) { if (is_a(PortType::AUDIO)) { // Send an update peak of 0.0 to reset to silence - const Notification note = Notification::make( - Notification::PORT_ACTIVITY, context.start(), this, - context.engine().world()->forge().make(0.0f)); - context.event_sink().write(sizeof(note), ¬e); + context.notify(Notification::PORT_ACTIVITY, + context.start(), + this, + context.engine().world()->forge().make(0.0f)); } _broadcast = false; } |