blob: c01461f62f09b7d65728af3addbdccc9f2ba2e20 (
plain)
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
|
--- a/src/ports.c
+++ b/src/ports.c
@@ -37,6 +37,16 @@
#define LIST_WIDTH 200
#define LIST_HEIGHT 100
+extern unsigned long sample_rate;
+extern jack_client_t * client;
+extern const char ** ports_in;
+extern const char ** ports_out;
+
+extern jack_port_t * in_L_port;
+extern jack_port_t * in_R_port;
+extern jack_port_t * out_L_port;
+extern jack_port_t * out_R_port;
+
extern GtkWidget * ports_button;
--- a/src/sound.c
+++ b/src/sound.c
@@ -44,6 +44,16 @@
*/
/* #define REVERBED_CALC_FLOAT */
+unsigned long sample_rate;
+jack_client_t * client;
+const char ** ports_in;
+const char ** ports_out;
+
+jack_port_t * in_L_port;
+jack_port_t * in_R_port;
+jack_port_t * out_L_port;
+jack_port_t * out_R_port;
+
extern int client_running;
extern REVTYPE * curr;
--- a/src/sound.h
+++ b/src/sound.h
@@ -24,15 +24,15 @@
-unsigned long sample_rate;
-jack_client_t * client;
-const char ** ports_in;
-const char ** ports_out;
-
-jack_port_t * in_L_port;
-jack_port_t * in_R_port;
-jack_port_t * out_L_port;
-jack_port_t * out_R_port;
+extern unsigned long sample_rate;
+extern jack_client_t * client;
+extern const char ** ports_in;
+extern const char ** ports_out;
+
+extern jack_port_t * in_L_port;
+extern jack_port_t * in_R_port;
+extern jack_port_t * out_L_port;
+extern jack_port_t * out_R_port;
void comp_coeffs(void);
void load_revtype_data(void);
|