aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2/sampler.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-12 02:39:05 +0000
committerDavid Robillard <d@drobilla.net>2012-04-12 02:39:05 +0000
commitf0f9e67865ff9beb323ad1acab4d0136ea08c38f (patch)
treeb0cc5580f43a4d128e9444df42e8e6acd14b002e /plugins/eg-sampler.lv2/sampler.c
parentcb1eb8a0ac422f64f7be787826f6ab37343de850 (diff)
downloadlv2-f0f9e67865ff9beb323ad1acab4d0136ea08c38f.tar.xz
Make all atom/util.h functions start with lv2_atom.
Diffstat (limited to 'plugins/eg-sampler.lv2/sampler.c')
-rw-r--r--plugins/eg-sampler.lv2/sampler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c
index d279ee4..e837517 100644
--- a/plugins/eg-sampler.lv2/sampler.c
+++ b/plugins/eg-sampler.lv2/sampler.c
@@ -356,8 +356,7 @@ run(LV2_Handle instance,
lv2_atom_forge_sequence_head(&self->forge, &self->notify_frame, 0);
/* Read incoming events */
- LV2_SEQUENCE_FOREACH(self->control_port, i) {
- LV2_Atom_Event* const ev = lv2_sequence_iter_get(i);
+ LV2_ATOM_SEQUENCE_FOREACH(self->control_port, ev) {
self->frame_offset = ev->time.frames;
if (ev->body.type == uris->midi_Event) {
uint8_t* const data = (uint8_t* const)(ev + 1);