Ensure the mmdevapi capture buffer is at least 100ms
[openal-soft.git] / common / math_defs.h
blob8756488c2c4020b904230575732bbe8c7c9c9fb2
1 #ifndef AL_MATH_DEFS_H
2 #define AL_MATH_DEFS_H
4 #include <math.h>
5 #ifdef HAVE_FLOAT_H
6 #include <float.h>
7 #endif
9 #define F_PI (3.14159265358979323846f)
10 #define F_PI_2 (1.57079632679489661923f)
11 #define F_TAU (6.28318530717958647692f)
13 #ifndef FLT_EPSILON
14 #define FLT_EPSILON (1.19209290e-07f)
15 #endif
17 #ifndef HUGE_VALF
18 #define HUGE_VALF (1.0f/0.0f)
19 #endif
21 #define DEG2RAD(x) ((float)(x) * (F_PI/180.0f))
22 #define RAD2DEG(x) ((float)(x) * (180.0f/F_PI))
24 #endif /* AL_MATH_DEFS_H */