summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-13 23:14:26 +0000
committerDavid Robillard <d@drobilla.net>2012-05-13 23:14:26 +0000
commitffa63b0c1e769fae0af5e2bbbd822d1e8b206535 (patch)
treeb4e1f4531f710fc1ecd088f11ab4631441c01e75 /src
parentb731f5a51bbccdcc346add34eb6c04ac22941768 (diff)
downloadingen-ffa63b0c1e769fae0af5e2bbbd822d1e8b206535.tar.gz
ingen-ffa63b0c1e769fae0af5e2bbbd822d1e8b206535.tar.bz2
ingen-ffa63b0c1e769fae0af5e2bbbd822d1e8b206535.zip
Fix wonky conditional.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4398 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/LV2Node.cpp2
1 files changed, 1 insertions, 1 deletions
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();