summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 18:56:59 -0400
committerDavid Robillard <d@drobilla.net>2016-10-02 12:24:57 -0400
commit424bd44c4b6f64a15f9dc18df47b77c39b62a855 (patch)
treed5ab1db30659a5fb8c0b9638611c87b2b10a832d /src
parent791816abb2295bcade40b664d39ecd7eb1016f19 (diff)
downloadingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.tar.gz
ingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.tar.bz2
ingen-424bd44c4b6f64a15f9dc18df47b77c39b62a855.zip
Fix properties of control/notify ports
Diffstat (limited to 'src')
-rw-r--r--src/URIs.cpp1
-rw-r--r--src/server/events/CreateGraph.cpp13
2 files changed, 8 insertions, 6 deletions
diff --git a/src/URIs.cpp b/src/URIs.cpp
index 4b771473..7eedd208 100644
--- a/src/URIs.cpp
+++ b/src/URIs.cpp
@@ -126,6 +126,7 @@ URIs::URIs(Forge& f, URIMap* map, LilvWorld* lworld)
, lv2_appliesTo (forge, map, lworld, LV2_CORE__appliesTo)
, lv2_binary (forge, map, lworld, LV2_CORE__binary)
, lv2_connectionOptional(forge, map, lworld, LV2_CORE__connectionOptional)
+ , lv2_control (forge, map, lworld, LV2_CORE__control)
, lv2_default (forge, map, lworld, LV2_CORE__default)
, lv2_designation (forge, map, lworld, LV2_CORE__designation)
, lv2_enumeration (forge, map, lworld, LV2_CORE__enumeration)
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),