Skip to content

Commit

Permalink
Ignore SI-style configuration strings for device names
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Jan 28, 2021
1 parent f0f7bc0 commit 8c2592b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions alc/alc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,11 @@ START_API_FUNC
|| al::strcasecmp(deviceName, "DirectSound") == 0
|| al::strcasecmp(deviceName, "MMSYSTEM") == 0
#endif
/* Some old Linux apps hardcode configuration strings that were
* supported by the OpenAL SI. We can't really do anything useful
* with them, so just ignore.
*/
|| (deviceName[0] == '\'' && deviceName[1] == '(')
|| al::strcasecmp(deviceName, "openal-soft") == 0)
deviceName = nullptr;
}
Expand Down

0 comments on commit 8c2592b

Please sign in to comment.