aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-08-04 15:48:49 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-08-04 15:48:49 +0200
commit013732710cb14928366b67adcd35ec6ddc26e6f1 (patch)
tree3329b69f22ab47918f341191506a457ad8cf7f42 /atom_inspector.c
parentd9ee7bc124c2ccd3a5bf64e457d85dfd7f3ed74e (diff)
downloadsherlock.lv2-013732710cb14928366b67adcd35ec6ddc26e6f1.tar.xz
add toggle to ignore time events.
Diffstat (limited to 'atom_inspector.c')
-rw-r--r--atom_inspector.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/atom_inspector.c b/atom_inspector.c
index 12cfb4d..6e7e56f 100644
--- a/atom_inspector.c
+++ b/atom_inspector.c
@@ -159,7 +159,12 @@ run(LV2_Handle instance, uint32_t nsamples)
// only serialize filtered events to UI
LV2_ATOM_SEQUENCE_FOREACH(handle->control, ev)
{
- if(true) //FIXME do filtering here
+ const LV2_Atom_Object *obj = (const LV2_Atom_Object *)&ev->body;
+
+ const bool is_time = lv2_atom_forge_is_object_type(&notify->forge, obj->atom.type)
+ && (obj->body.otype == handle->time_position);
+
+ if(!(!handle->state.time && is_time))
{
has_event = true;
if(notify->ref)