Line 0
Link Here
|
|
|
1 |
--- Alc/backends/jack.c.orig 2017-07-30 05:09:21 UTC |
2 |
+++ Alc/backends/jack.c |
3 |
@@ -35,11 +35,13 @@ |
4 |
#include <jack/ringbuffer.h> |
5 |
|
6 |
|
7 |
+extern void default_jack_error_callback(const char *msg) JACK_OPTIONAL_WEAK_EXPORT; |
8 |
+ |
9 |
static const ALCchar jackDevice[] = "JACK Default"; |
10 |
|
11 |
- |
12 |
#ifdef HAVE_DYNLOAD |
13 |
#define JACK_FUNCS(MAGIC) \ |
14 |
+ MAGIC(default_jack_error_callback); \ |
15 |
MAGIC(jack_client_open); \ |
16 |
MAGIC(jack_client_close); \ |
17 |
MAGIC(jack_client_name_size); \ |
18 |
@@ -65,6 +67,7 @@ static void *jack_handle; |
19 |
JACK_FUNCS(MAKE_FUNC); |
20 |
#undef MAKE_FUNC |
21 |
|
22 |
+#define default_jack_error_callback (*pdefault_jack_error_callback) |
23 |
#define jack_client_open pjack_client_open |
24 |
#define jack_client_close pjack_client_close |
25 |
#define jack_client_name_size pjack_client_name_size |
26 |
@@ -567,7 +570,7 @@ static ALCboolean ALCjackBackendFactory_init(ALCjackBa |
27 |
|
28 |
jack_set_error_function(jack_msg_handler); |
29 |
client = jack_client_open("alsoft", ClientOptions, &status, NULL); |
30 |
- jack_set_error_function(NULL); |
31 |
+ jack_set_error_function(default_jack_error_callback); |
32 |
if(client == NULL) |
33 |
{ |
34 |
WARN("jack_client_open() failed, 0x%02x\n", status); |