12 #define M_PI 3.14159265358979323846 /* pi */
13 #define M_PI_2 1.57079632679489661923 /* pi/2 */
17 #define aluSqrt(x) ((ALfloat)sqrtf((float)(x)))
19 #define aluSqrt(x) ((ALfloat)sqrt((double)(x)))
23 #define aluAcos(x) ((ALfloat)acosf((float)(x)))
25 #define aluAcos(x) ((ALfloat)acos((double)(x)))
29 #define aluAtan(x) ((ALfloat)atanf((float)(x)))
31 #define aluAtan(x) ((ALfloat)atan((double)(x)))
35 #define aluFabs(x) ((ALfloat)fabsf((float)(x)))
37 #define aluFabs(x) ((ALfloat)fabs((double)(x)))
41 #if defined(max) && !defined(__max)
44 #if defined(min) && !defined(__min)
66 #define BUFFERSIZE 24000
68 extern ALboolean DuplicateStereo
;
70 __inline ALuint
aluBytesFromFormat(ALenum format
);
71 __inline ALuint
aluChannelsFromFormat(ALenum format
);
72 ALvoid
aluInitPanning(ALCcontext
*Context
);
73 ALvoid
aluMixData(ALCcontext
*context
,ALvoid
*buffer
,ALsizei size
,ALenum format
);