diff options
author | David Robillard <d@drobilla.net> | 2010-10-17 08:45:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-10-17 08:45:46 +0000 |
commit | 80c6edc675a81b9acb69f4ace0415bd40d1bff32 (patch) | |
tree | 2933e3a3e150fedb06ecce7dc5b1ba3051b8360f /src/engine | |
parent | 5a1ccca68baf9e8efffe3e0297730a911617693d (diff) | |
download | ingen-80c6edc675a81b9acb69f4ace0415bd40d1bff32.tar.gz ingen-80c6edc675a81b9acb69f4ace0415bd40d1bff32.tar.bz2 ingen-80c6edc675a81b9acb69f4ace0415bd40d1bff32.zip |
Don't log every port resize.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2632 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/LV2ResizeFeature.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |