mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
* BugFix: When searching for OpenAL on Linux, search for both libopenal.so.1 and libopenal.so.
This commit is contained in:
parent
372a79c8f7
commit
d0f4084fcb
1 changed files with 8 additions and 0 deletions
|
|
@ -42,8 +42,16 @@ ALboolean LoadOAL10Library(char *szOALFullPathName, LPOPENALFNTABLE lpOALFnTable
|
||||||
if (szOALFullPathName)
|
if (szOALFullPathName)
|
||||||
openal_library = dlopen(szOALFullPathName, RTLD_NOW);
|
openal_library = dlopen(szOALFullPathName, RTLD_NOW);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
openal_library = dlopen("libopenal.so.1", RTLD_NOW);
|
openal_library = dlopen("libopenal.so.1", RTLD_NOW);
|
||||||
|
|
||||||
|
// If the .1 library is not found, try the normal filename
|
||||||
|
if (openal_library == NULL)
|
||||||
|
{
|
||||||
|
openal_library = dlopen("libopenal.so", RTLD_NOW);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (openal_library == NULL) {
|
if (openal_library == NULL) {
|
||||||
Con::errorf("Failed to load OpenAL shared library. Sound will not be available");
|
Con::errorf("Failed to load OpenAL shared library. Sound will not be available");
|
||||||
return AL_FALSE;
|
return AL_FALSE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue