aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 2dbe52f9..dc781835 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -384,6 +384,9 @@ static ALint RTPrioLevel;
// Output Log File
static FILE *LogFile;
+// Cone scalar
+ALdouble ConeScale = 0.5;
+
///////////////////////////////////////////////////////
@@ -435,6 +438,10 @@ static void alc_init(void)
if(!LogFile)
LogFile = stderr;
+ str = getenv("__ALSOFT_HALF_ANGLE_CONES");
+ if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
+ ConeScale = 1.0;
+
InitializeCriticalSection(&g_csMutex);
ALTHUNK_INIT();
ReadALConfig();