diff options
author | David Robillard <d@drobilla.net> | 2016-10-01 18:56:59 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-02 12:24:57 -0400 |
commit | 424bd44c4b6f64a15f9dc18df47b77c39b62a855 (patch) | |
tree | d5ab1db30659a5fb8c0b9638611c87b2b10a832d /src/server/events/CreateGraph.cpp | |
parent | 791816abb2295bcade40b664d39ecd7eb1016f19 (diff) | |
download | ingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.tar.gz ingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.tar.bz2 ingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.zip |
Fix properties of control/notify ports
Diffstat (limited to 'src/server/events/CreateGraph.cpp')
-rw-r--r-- | src/server/events/CreateGraph.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/server/events/CreateGraph.cpp b/src/server/events/CreateGraph.cpp index ae359e17..40f539f7 100644 --- a/src/server/events/CreateGraph.cpp +++ b/src/server/events/CreateGraph.cpp @@ -52,17 +52,18 @@ CreateGraph::build_child_events() // Properties common to both ports Resource::Properties control_properties; - control_properties.put(uris.rdf_type, uris.atom_AtomPort); control_properties.put(uris.atom_bufferType, uris.atom_Sequence); control_properties.put(uris.atom_supports, uris.patch_Message); - control_properties.put(uris.rsz_minimumSize, uris.forge.make(4096)); + control_properties.put(uris.lv2_designation, uris.lv2_control); control_properties.put(uris.lv2_portProperty, uris.lv2_connectionOptional); + control_properties.put(uris.rdf_type, uris.atom_AtomPort); + control_properties.put(uris.rsz_minimumSize, uris.forge.make(4096)); - // Add control input + // Add control port (message receive) Resource::Properties in_properties(control_properties); + in_properties.put(uris.lv2_index, uris.forge.make(0)); in_properties.put(uris.lv2_name, uris.forge.alloc("Control")); in_properties.put(uris.rdf_type, uris.lv2_InputPort); - in_properties.put(uris.lv2_index, uris.forge.make(0)); in_properties.put(uris.ingen_canvasX, uris.forge.make(32.0f), Resource::Graph::EXTERNAL); in_properties.put(uris.ingen_canvasY, uris.forge.make(32.0f), @@ -75,11 +76,11 @@ CreateGraph::build_child_events() _path.child(Raul::Symbol("control")), in_properties))); - // Add control out + // Add notify port (message respond) Resource::Properties out_properties(control_properties); + out_properties.put(uris.lv2_index, uris.forge.make(1)); out_properties.put(uris.lv2_name, uris.forge.alloc("Notify")); out_properties.put(uris.rdf_type, uris.lv2_OutputPort); - out_properties.put(uris.lv2_index, uris.forge.make(1)); out_properties.put(uris.ingen_canvasX, uris.forge.make(128.0f), Resource::Graph::EXTERNAL); out_properties.put(uris.ingen_canvasY, uris.forge.make(32.0f), |