diff options
Diffstat (limited to 'src/server/NodeImpl.cpp')
-rw-r--r-- | src/server/NodeImpl.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/server/NodeImpl.cpp b/src/server/NodeImpl.cpp index 914d9906..57c2d075 100644 --- a/src/server/NodeImpl.cpp +++ b/src/server/NodeImpl.cpp @@ -82,17 +82,7 @@ NodeImpl::activate(BufferFactory& bufs) PortImpl* const port = _ports->at(p); port->setup_buffers(bufs.engine().message_context(), bufs, port->poly()); port->connect_buffers(); - for (uint32_t v = 0; v < _polyphony; ++v) { - Buffer* const buf = port->buffer(v).get(); - if (buf) { - if (port->is_a(PortType::CONTROL) || port->is_a(PortType::CV)) { - ((AudioBuffer*)buf)->set_value( - port->value().get_float(), 0, 0); - } else { - buf->clear(); - } - } - } + port->clear_buffers(); } } |