summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r--src/server/PortImpl.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 2fdca1ed..d4fcb6c8 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -236,9 +236,10 @@ PortImpl::broadcast_value(Context& context, bool force)
if (_buffer_type == _bufs.uris().atom_Sequence) {
LV2_Atom_Sequence* seq = (LV2_Atom_Sequence*)buffer(0)->atom();
if (seq->atom.size > sizeof(LV2_Atom_Sequence_Body)) {
- const Notification note = Notification::make(
- Notification::PORT_ACTIVITY, context.start(), this, forge.make(true));
- context.event_sink().write(sizeof(note), &note);
+ context.notify(Notification::PORT_ACTIVITY,
+ context.start(),
+ this,
+ forge.make(true));
}
}
break;
@@ -246,9 +247,7 @@ PortImpl::broadcast_value(Context& context, bool force)
if (val.is_valid() && (force || val != _last_broadcasted_value)) {
_last_broadcasted_value = val;
- const Notification note = Notification::make(
- ntype, context.start(), this, val);
- context.event_sink().write(sizeof(note), &note);
+ context.notify(ntype, context.start(), this, val);
}
}