summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-12 05:16:58 +0000
committerDavid Robillard <d@drobilla.net>2012-08-12 05:16:58 +0000
commit65a81eec8943dc0504b8b8755f9866ee4993372c (patch)
tree65ba6d09f13bee9c40fe5f82185174ce388134b0 /src/server/events
parente49cb96073f514edbe1b7a9854b49c47af35463c (diff)
downloadingen-65a81eec8943dc0504b8b8755f9866ee4993372c.tar.gz
ingen-65a81eec8943dc0504b8b8755f9866ee4993372c.tar.bz2
ingen-65a81eec8943dc0504b8b8755f9866ee4993372c.zip
Remove message context cruft.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4668 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Connect.cpp7
-rw-r--r--src/server/events/Disconnect.cpp12
-rw-r--r--src/server/events/SetPortValue.cpp10
3 files changed, 10 insertions, 19 deletions
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp
index e4468c3a..39252a13 100644
--- a/src/server/events/Connect.cpp
+++ b/src/server/events/Connect.cpp
@@ -125,9 +125,10 @@ Connect::pre_process()
}
_buffers = new Raul::Array<BufferRef>(_head->poly());
- _head->get_buffers(_engine.message_context(),
- *_engine.buffer_factory(),
- _buffers, _head->poly());
+ _head->get_buffers(*_engine.buffer_factory(),
+ _buffers,
+ _head->poly(),
+ false);
if (_patch->enabled()) {
_compiled_patch = _patch->compile();
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index a3d472eb..7823a709 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -91,10 +91,10 @@ Disconnect::Impl::Impl(Engine& e,
if (_dst_input_port->num_edges() == 0) {
_buffers = new Raul::Array<BufferRef>(_dst_input_port->poly());
- _dst_input_port->get_buffers(_engine.message_context(),
- *_engine.buffer_factory(),
+ _dst_input_port->get_buffers(*_engine.buffer_factory(),
_buffers,
- _dst_input_port->poly());
+ _dst_input_port->poly(),
+ false);
const bool is_control = _dst_input_port->is_a(PortType::CONTROL) ||
_dst_input_port->is_a(PortType::CV);
@@ -183,9 +183,9 @@ Disconnect::Impl::execute(ProcessContext& context, bool set_dst_buffers)
if (_buffers) {
_engine.maid()->push(_dst_input_port->set_buffers(context, _buffers));
} else {
- _dst_input_port->setup_buffers(context,
- *_engine.buffer_factory(),
- _dst_input_port->poly());
+ _dst_input_port->setup_buffers(*_engine.buffer_factory(),
+ _dst_input_port->poly(),
+ true);
}
_dst_input_port->connect_buffers();
} else {
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index 139bbd78..f3d68f9b 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -25,7 +25,6 @@
#include "Driver.hpp"
#include "Engine.hpp"
#include "EngineStore.hpp"
-#include "MessageContext.hpp"
#include "NodeImpl.hpp"
#include "PortImpl.hpp"
#include "ProcessContext.hpp"
@@ -59,15 +58,6 @@ SetPortValue::pre_process()
return Event::pre_process_done(DIRECTION_MISMATCH, _port->path());
}
- // Port is on a message context node, set value and run
- if (_port->parent_node()->context() == Context::MESSAGE) {
- apply(_engine.message_context());
- _engine.message_context().run(
- _engine.message_context(),
- _port->parent_node(),
- _engine.driver()->frame_time() + _engine.driver()->block_length());
- }
-
// Set value metadata (does not affect buffers)
_port->set_value(_value);
_port->set_property(_engine.world()->uris().ingen_value, _value);