Skip to content

Commit

Permalink
Try loading soft_oal.dll on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Nov 1, 2021
1 parent 92b162c commit 461d3c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/OpenAL/LAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ bool LoadAL()
{
FLib = LoadLibrary( "OpenAL32.dll" );

if ( FLib == INVALID_HANDLE_VALUE || !FLib ) { printf("Unable to load OpenAL32.dll\n"); return false; }
if ( FLib == INVALID_HANDLE_VALUE || !FLib ) {
FLib = LoadLibrary("soft_oal.dll");

if (FLib == INVALID_HANDLE_VALUE || !FLib) {
printf("Unable to load OpenAL32.dll or soft_oal.dll\n");
return false;
}
}
}

alEnable = ( LPALENABLE )GetProcAddress( FLib, "alEnable" );
Expand Down

0 comments on commit 461d3c8

Please sign in to comment.