Check for the ALSOFT_DRIVERS env var for a list of backend drivers

This overrides the 'drivers' config option
This commit is contained in:
Chris Robinson 2012-02-19 14:27:00 -08:00
parent e4f14fdc61
commit 03ec2d6fc7

View File

@ -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;