aboutsummaryrefslogtreecommitdiff
path: root/audio/denemo/files/patch-src_audio_dummybackend.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/denemo/files/patch-src_audio_dummybackend.c')
-rw-r--r--audio/denemo/files/patch-src_audio_dummybackend.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/audio/denemo/files/patch-src_audio_dummybackend.c b/audio/denemo/files/patch-src_audio_dummybackend.c
new file mode 100644
index 000000000000..896d2aff1c17
--- /dev/null
+++ b/audio/denemo/files/patch-src_audio_dummybackend.c
@@ -0,0 +1,70 @@
+--- src/audio/dummybackend.c.orig 2016-04-10 12:10:21 UTC
++++ src/audio/dummybackend.c
+@@ -21,9 +21,11 @@
+ static int const PLAYBACK_INTERVAL = 100000;
+
+
++#if 0
+ static GThread *process_thread = NULL;
+ static GCond *process_cond = NULL;
+ static gboolean quit_thread = FALSE;
++#endif
+
+ static gboolean dummy_audio = FALSE;
+ static gboolean dummy_midi = FALSE;
+@@ -31,6 +33,7 @@ static gboolean dummy_midi = FALSE;
+ static double playback_start_time;
+
+
++#if 0
+ static gpointer
+ process_thread_func (gpointer data)
+ {
+@@ -114,6 +117,7 @@ stop_process_thread ()
+ process_thread = NULL;
+ }
+ }
++#endif
+
+
+ static int
+@@ -121,7 +125,9 @@ dummy_audio_initialize (DenemoPrefs * co
+ {
+ g_message ("Initializing dummy audio backend");
+
++#if 0
+ start_process_thread ();
++#endif
+
+ g_atomic_int_set (&dummy_audio, TRUE);
+
+@@ -133,7 +139,9 @@ dummy_midi_initialize (DenemoPrefs * con
+ {
+ g_message ("Initializing dummy MIDI backend");
+
++#if 0
+ start_process_thread ();
++#endif
+
+ g_atomic_int_set (&dummy_midi, TRUE);
+
+@@ -148,7 +156,9 @@ dummy_audio_destroy ()
+
+ g_atomic_int_set (&dummy_audio, FALSE);
+
++#if 0
+ stop_process_thread ();
++#endif
+
+ return 0;
+ }
+@@ -160,7 +170,9 @@ dummy_midi_destroy ()
+
+ g_atomic_int_set (&dummy_midi, FALSE);
+
++#if 0
+ stop_process_thread ();
++#endif
+
+ return 0;
+ }