diff options
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -393,6 +393,9 @@ static FILE *LogFile; // Cone scalar ALdouble ConeScale = 0.5; +// Localized Z scalar for mono sources +ALdouble ZScale = 1.0; + /////////////////////////////////////////////////////// @@ -466,6 +469,10 @@ static void alc_init(void) if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) ConeScale = 1.0; + str = getenv("__ALSOFT_REVERSE_Z"); + if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) + ZScale = -1.0; + InitializeCriticalSection(&g_csMutex); ALTHUNK_INIT(); ReadALConfig(); |