aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-23 22:33:37 -0700
committerChris Robinson <[email protected]>2011-09-23 22:33:37 -0700
commit9266a3727617c1da198183bc0919ac476298c7a8 (patch)
tree8c8c3f758caf5da4cea4ba346f127e4bdc3e73ac /Alc/ALc.c
parentff8ee688526d4ad994eb72589fe0a294d14bd754 (diff)
Move ConeScale and ZScale to ALu.c and alu.h, and make them floats
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index b5ac29d1..e7872d00 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -393,12 +393,6 @@ enum LogLevel LogLevel = LogWarning;
enum LogLevel LogLevel = LogError;
#endif
-// Cone scalar
-ALdouble ConeScale = 0.5;
-
-// Localized Z scalar for mono sources
-ALdouble ZScale = 1.0;
-
/* Flag to trap ALC device errors */
static ALCboolean TrapALCError = ALC_FALSE;
@@ -496,11 +490,11 @@ static void alc_init(void)
str = getenv("__ALSOFT_HALF_ANGLE_CONES");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
- ConeScale = 1.0;
+ ConeScale = 1.0f;
str = getenv("__ALSOFT_REVERSE_Z");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
- ZScale = -1.0;
+ ZScale = -1.0f;
str = getenv("__ALSOFT_TRAP_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))