Audapsace: Make it work with Jack and no libjack-dev package installed
@neXyon, mind backporting it to your upstream? :)
This commit is contained in:
@@ -44,7 +44,20 @@ static bool jack_supported = false;
|
|||||||
void AUD_jack_init(void)
|
void AUD_jack_init(void)
|
||||||
{
|
{
|
||||||
#ifdef WITH_JACK_DYNLOAD
|
#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) {
|
if (!jack_handle) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user