aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-06 18:32:34 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-06 18:32:34 +0200
commit04a3a9d232288c0dfb679a4b35d3ce348415dc01 (patch)
tree498794f84421a31946fd1047c6207a2c4188807d /atom_inspector.c
parentfb52ea8350740e174fb607a0a6c147f047e31e53 (diff)
downloadsherlock.lv2-04a3a9d232288c0dfb679a4b35d3ce348415dc01.tar.xz
prep up build system. add through port.
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 6430ec1..2bf358a 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -25,6 +25,7 @@ typedef struct _handle_t handle_t;
struct _handle_t {
LV2_URID_Map *map;
const LV2_Atom_Sequence *control_in;
+ LV2_Atom_Sequence *control_out;
};
static LV2_Handle
@@ -60,6 +61,9 @@ connect_port(LV2_Handle instance, uint32_t port, void *data)
case 0:
handle->control_in = (const LV2_Atom_Sequence *)data;
break;
+ case 1:
+ handle->control_out = (LV2_Atom_Sequence *)data;
+ break;
default:
break;
}
@@ -76,7 +80,10 @@ static void
run(LV2_Handle instance, uint32_t nsamples)
{
handle_t *handle = (handle_t *)instance;
- //nothing
+
+ // copy whole sequence
+ size_t size = sizeof(LV2_Atom) + handle->control_in->atom.size;
+ memcpy(handle->control_out, handle->control_in, size);
}
static void