From 8c2592b4d9604d2c47120fdc7f773c22ed92af16 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 27 Jan 2021 19:44:33 -0800 Subject: [PATCH] Ignore SI-style configuration strings for device names --- alc/alc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/alc/alc.cpp b/alc/alc.cpp index cc2a95369e..22e349b34e 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; }