aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;