summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/LV2Node.cpp')
-rw-r--r--src/server/LV2Node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp
index 5861a068..367d438c 100644
--- a/src/server/LV2Node.cpp
+++ b/src/server/LV2Node.cpp
@@ -101,8 +101,8 @@ LV2Node::make_instance(URIs& uris,
if (buffer) {
if (port->is_a(PortType::CV) || port->is_a(PortType::CONTROL)) {
- ((AudioBuffer*)buffer)->set_value(
- port->value().get_float(), 0, 0);
+ AudioBuffer* abuf = (AudioBuffer*)buffer;
+ abuf->set_block(port->value().get_float(), 0, abuf->nframes() - 1);
} else {
buffer->clear();
}