From ffa63b0c1e769fae0af5e2bbbd822d1e8b206535 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 May 2012 23:14:26 +0000 Subject: Fix wonky conditional. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4398 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/LV2Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp index 3ecbb456..bde67190 100644 --- a/src/server/LV2Node.cpp +++ b/src/server/LV2Node.cpp @@ -96,7 +96,7 @@ LV2Node::prepare_poly(BufferFactory& bufs, uint32_t poly) PortImpl* const port = _ports->at(j); Buffer* const buffer = port->prepared_buffer(i).get(); if (buffer) { - if (port->is_a(PortType::CONTROL) || port->is_a(PortType::CONTROL)) { + if (port->is_a(PortType::CV) || port->is_a(PortType::CONTROL)) { ((AudioBuffer*)buffer)->set_value(port->value().get_float(), 0, 0); } else { buffer->clear(); -- cgit v1.2.1