summaryrefslogtreecommitdiff
path: root/audio/denemo/files/patch-src__audio__dummybackend.c
blob: da83c63b6bbf42a8073b81094d1c7f579dd997ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
--- src/audio/dummybackend.c.orig
+++ 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 double playback_start_time;
 
 
+#if 0
 static gpointer
 process_thread_func (gpointer data)
 {
@@ -118,6 +121,7 @@
       process_thread = NULL;
     }
 }
+#endif
 
 
 static int
@@ -125,7 +129,9 @@
 {
   g_message ("Initializing dummy audio backend");
 
+#if 0
   start_process_thread ();
+#endif
 
   g_atomic_int_set (&dummy_audio, TRUE);
 
@@ -137,7 +143,9 @@
 {
   g_message ("Initializing dummy MIDI backend");
 
+#if 0
   start_process_thread ();
+#endif
 
   g_atomic_int_set (&dummy_midi, TRUE);
 
@@ -152,7 +160,9 @@
 
   g_atomic_int_set (&dummy_audio, FALSE);
 
+#if 0
   stop_process_thread ();
+#endif
 
   return 0;
 }
@@ -164,7 +174,9 @@
 
   g_atomic_int_set (&dummy_midi, FALSE);
 
+#if 0
   stop_process_thread ();
+#endif
 
   return 0;
 }