[SCM] calf/master: Mark the reorder function as experimental. Print new plugin order to stdout.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:31 UTC 2013


The following commit has been merged in the master branch:
commit 12a4f953c081a2d8fc366c4967e1ccd042574e40
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Mon Dec 27 00:26:44 2010 +0000

    Mark the reorder function as experimental. Print new plugin order to stdout.

diff --git a/src/jack_client.cpp b/src/jack_client.cpp
index 3cf4135..7d2f7b3 100644
--- a/src/jack_client.cpp
+++ b/src/jack_client.cpp
@@ -210,5 +210,14 @@ void jack_client::apply_plugin_order(const std::vector<int> &indices)
         plugins_new.push_back(plugins[indices[i]]);
     ptlock lock(mutex);
     plugins.swap(plugins_new);
+    
+    string s;
+    for (unsigned int i = 0; i < plugins.size(); i++)    
+    {
+        if (i)
+            s += " -> ";
+        s += plugins[i]->instance_name;
+    }
+    printf("Order: %s\n", s.c_str());
 }
 
diff --git a/src/main_win.cpp b/src/main_win.cpp
index fbbcb59..866260d 100644
--- a/src/main_win.cpp
+++ b/src/main_win.cpp
@@ -62,7 +62,7 @@ const GtkActionEntry main_window::actions[] = {
     { "FileSaveAs", GTK_STOCK_SAVE_AS, "Save _as...", NULL, "Save a rack file as", (GCallback)on_save_as_action },
     { "HostMenuAction", NULL, "_Host", NULL, "Host-related operations", NULL },
     { "AddPluginMenuAction", NULL, "_Add plugin", NULL, "Add a plugin to the rack", NULL },
-    { "FileReorder", NULL, "_Reorder plugins", NULL, "Reorder plugins to minimize latency", (GCallback)on_reorder_action },
+    { "FileReorder", NULL, "_Reorder plugins", NULL, "Reorder plugins to minimize latency (experimental)", (GCallback)on_reorder_action },
     { "FilePreferences", GTK_STOCK_PREFERENCES, "_Preferences...", NULL, "Adjust preferences", (GCallback)on_preferences_action },
     { "FileQuit", GTK_STOCK_QUIT, "_Quit", "<Ctrl>Q", "Exit application", (GCallback)on_exit_action },
 };

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list