diff options
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Connect.cpp | 7 | ||||
-rw-r--r-- | src/server/events/Disconnect.cpp | 12 | ||||
-rw-r--r-- | src/server/events/SetPortValue.cpp | 10 |
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); |