diff options
Diffstat (limited to 'src/lv2_evbuf.c')
-rw-r--r-- | src/lv2_evbuf.c | 11 |
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); |