diff options
Diffstat (limited to 'src/server/ingen_lv2.cpp')
-rw-r--r-- | src/server/ingen_lv2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 700c2a72..c8ea9fbe 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -93,10 +93,10 @@ public: if (!is_input() || !_buffer) return; - if (_patch_port->buffer_type() == PortType::AUDIO) { + if (_patch_port->is_a(PortType::AUDIO)) { AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0).get(); patch_buf->copy((Sample*)_buffer, 0, context.nframes() - 1); - } else if (_patch_port->buffer_type() == PortType::EVENTS) { + } else if (_patch_port->is_a(PortType::EVENTS)) { //Raul::warn << "TODO: LV2 event I/O" << std::endl; } } @@ -105,10 +105,10 @@ public: if (is_input() || !_buffer) return; - if (_patch_port->buffer_type() == PortType::AUDIO) { + if (_patch_port->is_a(PortType::AUDIO)) { AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0).get(); memcpy((Sample*)_buffer, patch_buf->data(), context.nframes() * sizeof(Sample)); - } else if (_patch_port->buffer_type() == PortType::EVENTS) { + } else if (_patch_port->is_a(PortType::EVENTS)) { //Raul::warn << "TODO: LV2 event I/O" << std::endl; } } |