[SCM] gsequencer/master: provided additional patch to fix change ::frequency
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Sun Feb 5 14:58:38 UTC 2017
The following commit has been merged in the master branch:
commit 91929ba632ae885b9fb84e1ddb21f8fdb6e1b9ae
Author: Joël Krähemann <jkraehemann-guest at users.alioth.debian.org>
Date: Sun Feb 5 15:45:43 2017 +0100
provided additional patch to fix change ::frequency
diff --git a/debian/patches/fix-export-thread.patch b/debian/patches/fix-export-thread.patch
new file mode 100644
index 0000000..f1d884a
--- /dev/null
+++ b/debian/patches/fix-export-thread.patch
@@ -0,0 +1,48 @@
+Description: This patch is considered important since it fixes missing
+ adjustment of refresh rate of the export thread.
+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/audio/thread/ags_export_thread.c
++++ b/ags/audio/thread/ags_export_thread.c
+@@ -25,6 +25,7 @@
+ #include <ags/thread/ags_mutex_manager.h>
+
+ #include <ags/audio/ags_devout.h>
++#include <ags/audio/jack/ags_jack_devout.h>
+
+ #include <math.h>
+
+@@ -250,6 +251,9 @@
+ {
+ GObject *soundcard;
+
++ guint samplerate;
++ guint buffer_size;
++
+ soundcard = (GObject *) g_value_get_object(value);
+
+ if(export_thread->soundcard != NULL){
+@@ -259,9 +263,22 @@
+ if(soundcard != NULL){
+ g_object_ref(G_OBJECT(soundcard));
+
++ ags_soundcard_get_presets(AGS_SOUNDCARD(soundcard),
++ NULL,
++ &samplerate,
++ &buffer_size,
++ NULL);
++
++ g_object_set(export_thread,
++ "frequency\0", ceil((gdouble) samplerate / (gdouble) buffer_size) + AGS_SOUNDCARD_DEFAULT_OVERCLOCK,
++ NULL);
++
+ if(AGS_IS_DEVOUT(soundcard)){
+ g_atomic_int_or(&(AGS_THREAD(export_thread)->flags),
+ (AGS_THREAD_INTERMEDIATE_POST_SYNC));
++ }else if(AGS_IS_JACK_DEVOUT(soundcard)){
++ g_atomic_int_and(&(AGS_THREAD(export_thread)->flags),
++ (~AGS_THREAD_INTERMEDIATE_POST_SYNC));
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 7d28676..0de80aa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+fix-export-thread.patch
fix-gsequencer-main.patch
fix-souncard-editor-callbacks.patch
fix-set-buffer-size.patch
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list