[SCM] gsequencer/master: added fix to mangled AgsMainLoop interface
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Sun Feb 5 14:58:37 UTC 2017
The following commit has been merged in the master branch:
commit 8073f3467b23d22f89dcb770d2dde843e45cf510
Author: Joël Krähemann <jkraehemann-guest at users.alioth.debian.org>
Date: Sun Feb 5 15:20:27 2017 +0100
added fix to mangled AgsMainLoop interface
diff --git a/debian/patches/fix-main-loop-c.patch b/debian/patches/fix-main-loop-c.patch
new file mode 100644
index 0000000..dbe10c8
--- /dev/null
+++ b/debian/patches/fix-main-loop-c.patch
@@ -0,0 +1,66 @@
+Description: This patch is considered critical since it fixes mangled function
+ availability to change main loop frequency.
+ The main loop which does audio computation has the same frequency as soundcard,
+ sequencer, export, audio or channel thread. The frequency changes as you modify
+ the buffer size or samplerate.
+Author: Joël Krähmann <jkraehemann at gmail.com>
+Applied-Upstream: 0.7.122.x, http://git.savannah.gnu.org/cgit/gsequencer.git
+Last-Update: 2017-02-05
+--- a/ags/object/ags_main_loop.c
++++ b/ags/object/ags_main_loop.c
+@@ -39,6 +39,7 @@
+ enum {
+ INTERRUPT,
+ MONITOR,
++ CHANGE_FREQUENCY,
+ LAST_SIGNAL,
+ };
+
+@@ -105,6 +106,25 @@
+ g_cclosure_user_marshal_BOOLEAN__UINT_POINTER,
+ G_TYPE_BOOLEAN, 2,
+ G_TYPE_UINT, G_TYPE_POINTER);
++
++ /**
++ * AgsMainLoop::change-frequency:
++ * @main_loop: the #AgsMainLoop
++ * @frequency: the new frequency
++ *
++ * Change frequency.
++ *
++ * Since: 0.7.122.2
++ */
++ main_loop_signals[CHANGE_FREQUENCY] =
++ g_signal_new("change-frequency\0",
++ G_TYPE_FROM_INTERFACE(interface),
++ G_SIGNAL_RUN_LAST,
++ G_STRUCT_OFFSET(AgsMainLoopInterface, change_frequency),
++ NULL, NULL,
++ g_cclosure_marshal_VOID__DOUBLE,
++ G_TYPE_NONE, 1,
++ G_TYPE_DOUBLE);
+ }
+
+ /**
+@@ -348,3 +368,21 @@
+ return(has_monitor);
+ }
+
++/**
++ * ags_main_loop_change_frequency:
++ * @main_loop: the #AgsMainLoop
++ * @frequency: the new frequency
++ *
++ * Change frequency.
++ *
++ * Since: 0.7.122.2
++ */
++void
++ags_main_loop_change_frequency(AgsMainLoop *main_loop,
++ gdouble frequency)
++{
++ g_signal_emit(main_loop,
++ main_loop_signals[CHANGE_FREQUENCY],
++ 0,
++ frequency);
++}
diff --git a/debian/patches/series b/debian/patches/series
index 9fa38c4..fa05ddd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+fix-main-loop-c.patch
fix-main-loop-h.patch
wish-line-c.patch
wish-effect-line-c.patch
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list