From 80c6edc675a81b9acb69f4ace0415bd40d1bff32 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Oct 2010 08:45:46 +0000 Subject: Don't log every port resize. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2632 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/LV2ResizeFeature.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine') diff --git a/src/engine/LV2ResizeFeature.hpp b/src/engine/LV2ResizeFeature.hpp index 0506dd53..b9097833 100644 --- a/src/engine/LV2ResizeFeature.hpp +++ b/src/engine/LV2ResizeFeature.hpp @@ -35,12 +35,12 @@ struct ResizeFeature : public Shared::LV2Features::Feature { size_t size) { NodeImpl* node = (NodeImpl*)data; PortImpl* port = node->port_impl(index); - if (port->context() == Context::MESSAGE) { - info << "Resizing " << port->path() << " to " << size << " bytes" << endl; + switch (port->context()) { + case Context::MESSAGE: port->buffer(0)->resize(size); port->connect_buffers(); return true; - } else { + default: // TODO: Implement realtime allocator and support this in audio thread return false; } -- cgit v1.2.1