aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-19 14:27:00 -0800
committerChris Robinson <[email protected]>2012-02-19 14:27:00 -0800
commit03ec2d6fc7e0a31b3fd00965e7ec6034b457e57a (patch)
tree1aafec9a23a29d56f51050bfa4f5586a087ef2c8 /Alc
parente4f14fdc6104c0341bb3c44bf61fc7edd369caa7 (diff)
Check for the ALSOFT_DRIVERS env var for a list of backend drivers
This overrides the 'drivers' config option
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 57e1006b..a019c237 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -616,7 +616,8 @@ static void alc_initconfig(void)
EmulateEAXReverb = GetConfigValueBool("reverb", "emulate-eax", AL_FALSE);
- if(ConfigValueStr(NULL, "drivers", &devs))
+ if(((devs=getenv("ALSOFT_DRIVERS")) && devs[0]) ||
+ ConfigValueStr(NULL, "drivers", &devs))
{
int n;
size_t len;