From 9923f2bc2a0731c111dbf614223ed81dee3e91f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Jun 2012 16:51:18 +0000 Subject: Working control ports when running under LV2. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4494 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ingen_lv2.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index c868bf76..aadb0914 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -98,9 +98,13 @@ public: return; } - if (_patch_port->is_a(PortType::AUDIO)) { + if (_patch_port->is_a(PortType::AUDIO) || + _patch_port->is_a(PortType::CV)) { AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0).get(); patch_buf->copy((Sample*)_buffer, 0, context.nframes() - 1); + } else if (_patch_port->is_a(PortType::CONTROL)) { + AudioBuffer* patch_buf = (AudioBuffer*)_patch_port->buffer(0).get(); + patch_buf->copy((Sample*)_buffer, 0, 0); } else { LV2_Atom_Sequence* seq = (LV2_Atom_Sequence*)_buffer; bool enqueued = false; -- cgit v1.2.1