[SCM] calf/master: + LV2: (attempt to) emit uiext:portNotification stuff for output control ports

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:27 UTC 2013


The following commit has been merged in the master branch:
commit 556c4f9f2dd4e6f9327f7706b998989412e9ed8a
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Mon Nov 10 19:26:54 2008 +0000

    + LV2: (attempt to) emit uiext:portNotification stuff for output control ports

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index 923d9b4..216b6da 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -479,7 +479,8 @@ void make_ttl(string path_prefix)
     string gui_header;
     
 #if USE_LV2_GUI
-    gui_header = "<http://calf.sourceforge.net/plugins/gui/gtk2-gui>\n"
+    string gui_uri = "<http://calf.sourceforge.net/plugins/gui/gtk2-gui>";
+    gui_header = gui_uri + "\n"
         "    a uiext:GtkUI ;\n"
         "    uiext:binary <calflv2gui.so> ;\n"
         "    uiext:requiredFeature uiext:makeResident .\n"
@@ -501,6 +502,15 @@ void make_ttl(string path_prefix)
         string ttl;
         ttl = "@prefix : " + uri + " .\n" + header + gui_header;
         
+#if USE_LV2_GUI
+        for (int j = 0; j < pi->get_param_count(); j++)
+        {
+            parameter_properties &props = *pi->get_param_props(j);
+            if (props.flags & PF_PROP_OUTPUT)
+                ttl += gui_uri + " uiext:portNotification [\n    uiext:plugin " + uri + " ;\n    uiext:portIndex " + i2s(j) + "\n] .\n\n";
+        }
+#endif
+        
         ttl += uri + " a lv2:Plugin ;\n";
         
         if (classes.count(lpi.plugin_type))

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list