aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-01-27 19:44:33 -0800
committerChris Robinson <[email protected]>2021-01-27 19:44:33 -0800
commit8c2592b4d9604d2c47120fdc7f773c22ed92af16 (patch)
treefde61aa83ebc0c0b500c71ccc2daf460a38f9a49 /alc
parentf0f7bc036f3480423ba5a1ddded787cf7df7a353 (diff)
Ignore SI-style configuration strings for device names
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index cc2a9536..22e349b3 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -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;
}