[SCM] ardour/master: Add Ladish level 1 support
adiknoth-guest at users.alioth.debian.org
adiknoth-guest at users.alioth.debian.org
Sat Jan 29 18:09:49 UTC 2011
The following commit has been merged in the master branch:
commit c51db6d81144d9b6a9ba609873b10aa80e5e950d
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date: Sat Jan 29 18:23:46 2011 +0100
Add Ladish level 1 support
The patch is required to make ardour react on sigusr1, triggering a
session save, so it can be used for ladish.org
diff --git a/debian/patches/140_enable-ladish.patch b/debian/patches/140_enable-ladish.patch
new file mode 100644
index 0000000..9c67baa
--- /dev/null
+++ b/debian/patches/140_enable-ladish.patch
@@ -0,0 +1,46 @@
+Origin: http://tracker.ardour.org/view.php?id=2990
+Author: Nedko Arnaudov <nedko at arnaudov.name>
+Description: Add ladish level 1 support
+--- a/gtk2_ardour/main.cc
++++ b/gtk2_ardour/main.cc
+@@ -296,6 +296,27 @@
+ }
+ }
+
++static bool ladish_L1_save_request = false;
++
++static gboolean
++maybe_ladish_L1_save (void* /* ignored */)
++{
++ if (ladish_L1_save_request) {
++ cout << "ladish L1 save request" << endl;
++ ladish_L1_save_request = false;
++ ARDOUR_UI::instance()->save_state("");
++ }
++
++ return true;
++}
++
++static void
++sigusr1_handler (int sig)
++{
++ //cout << "SIGUSR1 received!" << endl;
++ ladish_L1_save_request = true;
++}
++
+ #ifdef VST_SUPPORT
+
+ extern int gui_init (int* argc, char** argv[]);
+@@ -388,6 +409,12 @@
+ cerr << _("Cannot install SIGPIPE error handler") << endl;
+ }
+
++ g_timeout_add (300, maybe_ladish_L1_save, 0);
++
++ if (::signal (SIGUSR1, sigusr1_handler)) {
++ cerr << _("Cannot install SIGUSR1 error handler") << endl;
++ }
++
+ try {
+ ui = new ARDOUR_UI (&argc, &argv);
+ } catch (failed_constructor& err) {
--
ardour Debian packaging
More information about the pkg-multimedia-commits
mailing list