From 03ec2d6fc7e0a31b3fd00965e7ec6034b457e57a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 19 Feb 2012 14:27:00 -0800 Subject: Check for the ALSOFT_DRIVERS env var for a list of backend drivers This overrides the 'drivers' config option --- Alc/ALc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3