aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-17 06:12:25 +0000
committerDavid Robillard <d@drobilla.net>2012-02-17 06:12:25 +0000
commit9db204f703d338e7b6434fccdedb1050c9124bf6 (patch)
treeb106d8520cbef66efc48cff1e3fd5468c87db085 /plugins
parent64f7c134aabf7b336b90cf3b8954a791ae91b546 (diff)
downloadlv2-9db204f703d338e7b6434fccdedb1050c9124bf6.tar.xz
Add LV2_Atom_Port_Buffer.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/eg-sampler.lv2/sampler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index 65339c7..82a374c 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -82,9 +82,9 @@ typedef struct {
Sample* sample;
/* Ports */
- float* output_port;
- LV2_Atom_Sequence* control_port;
- LV2_Atom_Sequence* response_port;
+ float* output_port;
+ LV2_Atom_Port_Buffer* control_port;
+ LV2_Atom_Port_Buffer* notify_port;
/* URIs */
SamplerURIs uris;
@@ -273,10 +273,10 @@ connect_port(LV2_Handle instance,
switch (port) {
case SAMPLER_CONTROL:
- plugin->control_port = (LV2_Atom_Sequence*)data;
+ plugin->control_port = (LV2_Atom_Port_Buffer*)data;
break;
case SAMPLER_RESPONSE:
- plugin->response_port = (LV2_Atom_Sequence*)data;
+ plugin->notify_port = (LV2_Atom_Port_Buffer*)data;
break;
case SAMPLER_OUT:
plugin->output_port = (float*)data;
@@ -386,7 +386,7 @@ run(LV2_Handle instance,
float* output = plugin->output_port;
/* Read incoming events */
- LV2_SEQUENCE_FOREACH(plugin->control_port, i) {
+ LV2_SEQUENCE_FOREACH((LV2_Atom_Sequence*)plugin->control_port->data, i) {
LV2_Atom_Event* const ev = lv2_sequence_iter_get(i);
if (ev->body.type == plugin->uris.midi_Event) {
uint8_t* const data = (uint8_t* const)(ev + 1);