diff options
author | David Robillard <d@drobilla.net> | 2012-06-10 16:51:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-06-10 16:51:18 +0000 |
commit | 9923f2bc2a0731c111dbf614223ed81dee3e91f5 (patch) | |
tree | 97bd49f4034b060c1c40711f5431216c178a3de5 /src/server | |
parent | 50c492d119b240946f35505a71c7ee2f59ed6b4a (diff) | |
download | ingen-9923f2bc2a0731c111dbf614223ed81dee3e91f5.tar.gz ingen-9923f2bc2a0731c111dbf614223ed81dee3e91f5.tar.bz2 ingen-9923f2bc2a0731c111dbf614223ed81dee3e91f5.zip |
Working control ports when running under LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4494 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ingen_lv2.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |