diff options
Diffstat (limited to 'src/server/LV2Node.cpp')
-rw-r--r-- | src/server/LV2Node.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/LV2Node.cpp b/src/server/LV2Node.cpp index 367d438c..5b2e2487 100644 --- a/src/server/LV2Node.cpp +++ b/src/server/LV2Node.cpp @@ -30,7 +30,6 @@ #include "ingen/URIMap.hpp" #include "ingen/URIs.hpp" -#include "AudioBuffer.hpp" #include "Driver.hpp" #include "Engine.hpp" #include "InputPort.hpp" @@ -101,8 +100,7 @@ LV2Node::make_instance(URIs& uris, if (buffer) { if (port->is_a(PortType::CV) || port->is_a(PortType::CONTROL)) { - AudioBuffer* abuf = (AudioBuffer*)buffer; - abuf->set_block(port->value().get_float(), 0, abuf->nframes() - 1); + buffer->set_block(port->value().get_float(), 0, buffer->nframes() - 1); } else { buffer->clear(); } |