aboutsummaryrefslogtreecommitdiffstats
path: root/src/lv2_evbuf.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-23 02:32:44 +0000
committerDavid Robillard <d@drobilla.net>2012-02-23 02:32:44 +0000
commitc921a5bec946005c30b010d160b866c0751b5f8f (patch)
tree8128921df901fd86e2166bf32b110aaa9ca31ee4 /src/lv2_evbuf.c
parent457c9d03595cc4726c3b0ed6daf5c1de312a248f (diff)
downloadjalv-c921a5bec946005c30b010d160b866c0751b5f8f.tar.gz
jalv-c921a5bec946005c30b010d160b866c0751b5f8f.tar.bz2
jalv-c921a5bec946005c30b010d160b866c0751b5f8f.zip
Update for latest Atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3993 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/lv2_evbuf.c')
-rw-r--r--src/lv2_evbuf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lv2_evbuf.c b/src/lv2_evbuf.c
index 96c077f..0a2fd31 100644
--- a/src/lv2_evbuf.c
+++ b/src/lv2_evbuf.c
@@ -188,8 +188,8 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter,
aev = (LV2_Atom_Event*)(
(char*)LV2_ATOM_CONTENTS(LV2_Atom_Sequence, abuf->data)
+ iter.offset);
- *frames = aev->time.audio.frames;
- *subframes = aev->time.audio.subframes;
+ *frames = aev->time.frames;
+ *subframes = 0;
*type = aev->body.type;
*size = aev->body.size;
*data = LV2_ATOM_BODY(&aev->body);
@@ -239,10 +239,9 @@ lv2_evbuf_write(LV2_Evbuf_Iterator* iter,
aev = (LV2_Atom_Event*)(
(char*)LV2_ATOM_CONTENTS(LV2_Atom_Sequence, abuf->data)
+ iter->offset);
- aev->time.audio.frames = frames;
- aev->time.audio.subframes = subframes;
- aev->body.type = type;
- aev->body.size = size;
+ aev->time.frames = frames;
+ aev->body.type = type;
+ aev->body.size = size;
memcpy(LV2_ATOM_BODY(&aev->body), data, size);
size = lv2_evbuf_pad_size(sizeof(LV2_Atom_Event) + size);