summaryrefslogtreecommitdiff
path: root/libs/ardour/lv2_evbuf.c
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
commit30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch)
tree620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/ardour/lv2_evbuf.c
parentcb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff)
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
Diffstat (limited to 'libs/ardour/lv2_evbuf.c')
-rw-r--r--libs/ardour/lv2_evbuf.c14
1 files changed, 7 insertions, 7 deletions
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);