aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-30 19:22:24 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-30 19:22:24 +0200
commit60accc3f934dd9879111af908ff1a564eb4bd8f1 (patch)
tree7813d938fa4ff21314636575002051a9954dc619
parent65ce0ebe2daf9196d56a4fbb08bf9dd70f5011d6 (diff)
downloadsherlock.lv2-60accc3f934dd9879111af908ff1a564eb4bd8f1.tar.xz
clear atom info when clearing events.
* clear atom info when clearing events. * and other atom_forge_* cosmetics.
-rw-r--r--atom_inspector.c8
-rw-r--r--atom_inspector_eo.c2
-rw-r--r--midi_inspector.c4
-rw-r--r--osc_inspector.c4
4 files changed, 6 insertions, 12 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 227e847..2d733b4 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -116,9 +116,7 @@ run(LV2_Handle instance, uint32_t nsamples)
capacity = handle->control_out->atom.size;
lv2_atom_forge_set_buffer(forge, (uint8_t *)handle->control_out, capacity);
ref = lv2_atom_forge_raw(forge, handle->control_in, size);
- if(ref)
- lv2_atom_forge_pop(forge, &frame);
- else
+ if(!ref)
lv2_atom_sequence_clear(handle->control_out);
// forge whole sequence as single event
@@ -140,9 +138,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_int(forge, nsamples);
if(ref)
- ref = lv2_atom_forge_raw(forge, handle->control_in, size);
- if(ref)
- lv2_atom_forge_pad(forge, size);
+ ref = lv2_atom_forge_write(forge, handle->control_in, size);
if(ref)
lv2_atom_forge_pop(forge, &tup_frame);
diff --git a/atom_inspector_eo.c b/atom_inspector_eo.c
index d73ea92..41ba32a 100644
--- a/atom_inspector_eo.c
+++ b/atom_inspector_eo.c
@@ -369,6 +369,8 @@ _clear_clicked(void *data, Evas_Object *obj, void *event_info)
if(ui->list)
elm_genlist_clear(ui->list);
+ if(ui->info)
+ elm_entry_entry_set(ui->info, "");
_clear_update(ui, 0);
}
diff --git a/midi_inspector.c b/midi_inspector.c
index 600b8dd..ae60b5e 100644
--- a/midi_inspector.c
+++ b/midi_inspector.c
@@ -151,9 +151,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_frame_time(forge, ev->time.frames);
if(ref)
- ref = lv2_atom_forge_raw(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
- if(ref)
- lv2_atom_forge_pad(forge, ev->body.size);
+ ref = lv2_atom_forge_write(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
}
}
diff --git a/osc_inspector.c b/osc_inspector.c
index 41d87b2..fc9f9a5 100644
--- a/osc_inspector.c
+++ b/osc_inspector.c
@@ -154,9 +154,7 @@ run(LV2_Handle instance, uint32_t nsamples)
if(ref)
ref = lv2_atom_forge_frame_time(forge, ev->time.frames);
if(ref)
- ref = lv2_atom_forge_raw(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
- if(ref)
- lv2_atom_forge_pad(forge, ev->body.size);
+ ref = lv2_atom_forge_write(forge, &ev->body, sizeof(LV2_Atom) + ev->body.size);
}
}