From 30b087ab3d28f1585987fa3f6ae006562ae192e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Sep 2017 12:39:17 -0400 Subject: globally change all use of "frame" to refer to audio into "sample". Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible --- libs/ardour/lv2_evbuf.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libs/ardour/lv2_evbuf.c') diff --git a/libs/ardour/lv2_evbuf.c b/libs/ardour/lv2_evbuf.c index ae6d869b5f..b487e1fea9 100644 --- a/libs/ardour/lv2_evbuf.c +++ b/libs/ardour/lv2_evbuf.c @@ -183,13 +183,13 @@ lv2_evbuf_next(LV2_Evbuf_Iterator iter) bool lv2_evbuf_get(LV2_Evbuf_Iterator iter, - uint32_t* frames, + uint32_t* samples, uint32_t* subframes, uint32_t* type, uint32_t* size, uint8_t** data) { - *frames = *subframes = *type = *size = 0; + *samples = *subframes = *type = *size = 0; *data = NULL; if (!lv2_evbuf_is_valid(iter)) { @@ -204,7 +204,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter, case LV2_EVBUF_EVENT: ebuf = &iter.evbuf->buf.event; ev = (LV2_Event*)((uintptr_t)((char*)ebuf->data + iter.offset)); - *frames = ev->frames; + *samples = ev->frames; *subframes = ev->subframes; *type = ev->type; *size = ev->size; @@ -215,7 +215,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter, aev = (LV2_Atom_Event*)((uintptr_t)( (char*)LV2_ATOM_CONTENTS(LV2_Atom_Sequence, aseq) + iter.offset)); - *frames = aev->time.frames; + *samples = aev->time.frames; *subframes = 0; *type = aev->body.type; *size = aev->body.size; @@ -228,7 +228,7 @@ lv2_evbuf_get(LV2_Evbuf_Iterator iter, bool lv2_evbuf_write(LV2_Evbuf_Iterator* iter, - uint32_t frames, + uint32_t samples, uint32_t subframes, uint32_t type, uint32_t size, @@ -246,7 +246,7 @@ lv2_evbuf_write(LV2_Evbuf_Iterator* iter, } ev = (LV2_Event*)((uintptr_t)(ebuf->data + iter->offset)); - ev->frames = frames; + ev->frames = samples; ev->subframes = subframes; ev->type = type; ev->size = size; @@ -267,7 +267,7 @@ lv2_evbuf_write(LV2_Evbuf_Iterator* iter, aev = (LV2_Atom_Event*)((uintptr_t)( (char*)LV2_ATOM_CONTENTS(LV2_Atom_Sequence, aseq) + iter->offset)); - aev->time.frames = frames; + aev->time.frames = samples; aev->body.type = type; aev->body.size = size; memcpy(LV2_ATOM_BODY(&aev->body), data, size); -- cgit v1.2.3