forked from bartvdbraak/blender
Audapsace: Make it work with Jack and no libjack-dev package installed
@neXyon, mind backporting it to your upstream? :)
This commit is contained in:
parent
8e015e30b5
commit
538b30250d
@ -44,7 +44,20 @@ static bool jack_supported = false;
|
||||
void AUD_jack_init(void)
|
||||
{
|
||||
#ifdef WITH_JACK_DYNLOAD
|
||||
jack_handle = dlopen("libjack.so", RTLD_LAZY);
|
||||
const char *names[] = {"libjack.so",
|
||||
"libjack.so.0",
|
||||
"libjack.so.1",
|
||||
"libjack.so.2",
|
||||
NULL};
|
||||
int index = 0;
|
||||
while (names[index] != NULL) {
|
||||
jack_handle = dlopen(names[index], RTLD_LAZY);
|
||||
if (jack_handle != NULL) {
|
||||
// Found existing library.
|
||||
break;
|
||||
}
|
||||
++index;
|
||||
}
|
||||
|
||||
if (!jack_handle) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user