From e5ffd577fced7c2d55b0298af8eb6a4581de82a6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Feb 2013 02:00:46 +0000 Subject: Remove unused metro notify port. --- plugins/eg03-metro.lv2/metro.c | 13 +------------ plugins/eg03-metro.lv2/metro.ttl | 9 --------- 2 files changed, 1 insertion(+), 21 deletions(-) (limited to 'plugins') diff --git a/plugins/eg03-metro.lv2/metro.c b/plugins/eg03-metro.lv2/metro.c index 9048e21..925c1e7 100644 --- a/plugins/eg03-metro.lv2/metro.c +++ b/plugins/eg03-metro.lv2/metro.c @@ -52,8 +52,7 @@ static const double decay_s = 0.075; enum { METRO_CONTROL = 0, - METRO_NOTIFY = 1, - METRO_OUT = 2 + METRO_OUT = 1 }; /** During execution this plugin can be in one of 3 states: */ @@ -80,7 +79,6 @@ typedef struct { struct { LV2_Atom_Sequence* control; - LV2_Atom_Sequence* notify; float* output; } ports; @@ -113,9 +111,6 @@ connect_port(LV2_Handle instance, case METRO_CONTROL: self->ports.control = (LV2_Atom_Sequence*)data; break; - case METRO_NOTIFY: - self->ports.notify = (LV2_Atom_Sequence*)data; - break; case METRO_OUT: self->ports.output = (float*)data; break; @@ -285,12 +280,6 @@ run(LV2_Handle instance, uint32_t sample_count) Metro* self = (Metro*)instance; const MetroURIs* uris = &self->uris; - // Empty notify output for now - LV2_Atom_Sequence* notify = self->ports.notify; - notify->atom.type = self->uris.atom_Sequence; - notify->atom.size = sizeof(LV2_Atom_Sequence_Body); - notify->body.unit = notify->body.pad = 0; - // Work forwards in time frame by frame, handling events as we go const LV2_Atom_Sequence* in = self->ports.control; uint32_t last_t = 0; diff --git a/plugins/eg03-metro.lv2/metro.ttl b/plugins/eg03-metro.lv2/metro.ttl index a6f297f..694c3bc 100644 --- a/plugins/eg03-metro.lv2/metro.ttl +++ b/plugins/eg03-metro.lv2/metro.ttl @@ -21,15 +21,6 @@ lv2:index 0 ; lv2:symbol "control" ; lv2:name "Control" ; - ] , [ - a lv2:OutputPort , - atom:AtomPort ; - atom:bufferType atom:Sequence ; - atom:supports ; - lv2:portProperty lv2:connectionOptional ; - lv2:index 1 ; - lv2:symbol "notify" ; - lv2:name "Notify" ; ] , [ a lv2:AudioPort , lv2:OutputPort ; -- cgit v1.2.1