aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-04-22 23:17:27 -0700
committerChris Robinson <[email protected]>2011-04-22 23:17:27 -0700
commit10a9753183567ad36fbcc3228ded34c5beebdbd2 (patch)
tree6a0dd9a02680df631980ab6670a9aee15728a072 /OpenAL32/Include
parent1e8718fe8787be8c17403b3e19fbf23916ff7193 (diff)
Add a compatibility option to treat cone angles as half angles
All previous versions of the library treated the source cone angles as half angles, which is contrary to the spec. Setting the __ALSOFT_HALF_ANGLE_CONES environment variable to "true" or "1" restores the buggy behavior for compatibility with applications that expect it. This is not a config file option because new apps should not be made to depend on the old behavior.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 9aad3036..eab68070 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -583,6 +583,8 @@ void al_print(const char *fname, unsigned int line, const char *fmt, ...)
PRINTF_STYLE(3,4);
#define AL_PRINT(...) al_print(__FILE__, __LINE__, __VA_ARGS__)
+extern ALdouble ConeScale;
+
#ifdef __cplusplus
}
#endif