11 float *history
; /* pointer to history in filter */
12 float *coef
; /* pointer to coefficients of filter */
15 #define AL_FILTER_TYPE 0x8001
17 #define AL_FILTER_NULL 0x0000
18 #define AL_FILTER_LOWPASS 0x0001
19 #define AL_FILTER_HIGHPASS 0x0002
20 #define AL_FILTER_BANDPASS 0x0003
22 #define AL_LOWPASS_GAIN 0x0001
23 #define AL_LOWPASS_GAINHF 0x0002
26 typedef struct ALfilter_struct
28 // Filter type (AL_FILTER_NULL, ...)
37 struct ALfilter_struct
*next
;
40 AL_API ALvoid AL_APIENTRY
alGenFilters(ALsizei n
, ALuint
*filters
);
41 AL_API ALvoid AL_APIENTRY
alDeleteFilters(ALsizei n
, ALuint
*filters
);
42 AL_API ALboolean AL_APIENTRY
alIsFilter(ALuint filter
);
44 AL_API ALvoid AL_APIENTRY
alFilteri(ALuint filter
, ALenum param
, ALint iValue
);
45 AL_API ALvoid AL_APIENTRY
alFilteriv(ALuint filter
, ALenum param
, ALint
*piValues
);
46 AL_API ALvoid AL_APIENTRY
alFilterf(ALuint filter
, ALenum param
, ALfloat flValue
);
47 AL_API ALvoid AL_APIENTRY
alFilterfv(ALuint filter
, ALenum param
, ALfloat
*pflValues
);
49 AL_API ALvoid AL_APIENTRY
alGetFilteri(ALuint filter
, ALenum param
, ALint
*piValue
);
50 AL_API ALvoid AL_APIENTRY
alGetFilteriv(ALuint filter
, ALenum param
, ALint
*piValues
);
51 AL_API ALvoid AL_APIENTRY
alGetFilterf(ALuint filter
, ALenum param
, ALfloat
*pflValue
);
52 AL_API ALvoid AL_APIENTRY
alGetFilterfv(ALuint filter
, ALenum param
, ALfloat
*pflValues
);
54 ALvoid
ReleaseALFilters(ALvoid
);
56 #define FILTER_SECTIONS 2 /* 2 filter sections for 24 db/oct filter */
58 int InitLowPassFilter(ALCcontext
*Context
, FILTER
*iir
);