annotate include/AL/efx.h @ 0:f9476ff7637e

initial forking of open-al to create multiple listeners
author Robert McIntyre <rlm@mit.edu>
date Tue, 25 Oct 2011 13:02:31 -0700
parents
children
rev   line source
rlm@0 1 #ifndef AL_EFX_H
rlm@0 2 #define AL_EFX_H
rlm@0 3
rlm@0 4
rlm@0 5 #ifdef __cplusplus
rlm@0 6 extern "C" {
rlm@0 7 #endif
rlm@0 8
rlm@0 9 #define ALC_EXT_EFX_NAME "ALC_EXT_EFX"
rlm@0 10
rlm@0 11 #define ALC_EFX_MAJOR_VERSION 0x20001
rlm@0 12 #define ALC_EFX_MINOR_VERSION 0x20002
rlm@0 13 #define ALC_MAX_AUXILIARY_SENDS 0x20003
rlm@0 14
rlm@0 15
rlm@0 16 /* Listener properties. */
rlm@0 17 #define AL_METERS_PER_UNIT 0x20004
rlm@0 18
rlm@0 19 /* Source properties. */
rlm@0 20 #define AL_DIRECT_FILTER 0x20005
rlm@0 21 #define AL_AUXILIARY_SEND_FILTER 0x20006
rlm@0 22 #define AL_AIR_ABSORPTION_FACTOR 0x20007
rlm@0 23 #define AL_ROOM_ROLLOFF_FACTOR 0x20008
rlm@0 24 #define AL_CONE_OUTER_GAINHF 0x20009
rlm@0 25 #define AL_DIRECT_FILTER_GAINHF_AUTO 0x2000A
rlm@0 26 #define AL_AUXILIARY_SEND_FILTER_GAIN_AUTO 0x2000B
rlm@0 27 #define AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO 0x2000C
rlm@0 28
rlm@0 29
rlm@0 30 /* Effect properties. */
rlm@0 31
rlm@0 32 /* Reverb effect parameters */
rlm@0 33 #define AL_REVERB_DENSITY 0x0001
rlm@0 34 #define AL_REVERB_DIFFUSION 0x0002
rlm@0 35 #define AL_REVERB_GAIN 0x0003
rlm@0 36 #define AL_REVERB_GAINHF 0x0004
rlm@0 37 #define AL_REVERB_DECAY_TIME 0x0005
rlm@0 38 #define AL_REVERB_DECAY_HFRATIO 0x0006
rlm@0 39 #define AL_REVERB_REFLECTIONS_GAIN 0x0007
rlm@0 40 #define AL_REVERB_REFLECTIONS_DELAY 0x0008
rlm@0 41 #define AL_REVERB_LATE_REVERB_GAIN 0x0009
rlm@0 42 #define AL_REVERB_LATE_REVERB_DELAY 0x000A
rlm@0 43 #define AL_REVERB_AIR_ABSORPTION_GAINHF 0x000B
rlm@0 44 #define AL_REVERB_ROOM_ROLLOFF_FACTOR 0x000C
rlm@0 45 #define AL_REVERB_DECAY_HFLIMIT 0x000D
rlm@0 46
rlm@0 47 /* EAX Reverb effect parameters */
rlm@0 48 #define AL_EAXREVERB_DENSITY 0x0001
rlm@0 49 #define AL_EAXREVERB_DIFFUSION 0x0002
rlm@0 50 #define AL_EAXREVERB_GAIN 0x0003
rlm@0 51 #define AL_EAXREVERB_GAINHF 0x0004
rlm@0 52 #define AL_EAXREVERB_GAINLF 0x0005
rlm@0 53 #define AL_EAXREVERB_DECAY_TIME 0x0006
rlm@0 54 #define AL_EAXREVERB_DECAY_HFRATIO 0x0007
rlm@0 55 #define AL_EAXREVERB_DECAY_LFRATIO 0x0008
rlm@0 56 #define AL_EAXREVERB_REFLECTIONS_GAIN 0x0009
rlm@0 57 #define AL_EAXREVERB_REFLECTIONS_DELAY 0x000A
rlm@0 58 #define AL_EAXREVERB_REFLECTIONS_PAN 0x000B
rlm@0 59 #define AL_EAXREVERB_LATE_REVERB_GAIN 0x000C
rlm@0 60 #define AL_EAXREVERB_LATE_REVERB_DELAY 0x000D
rlm@0 61 #define AL_EAXREVERB_LATE_REVERB_PAN 0x000E
rlm@0 62 #define AL_EAXREVERB_ECHO_TIME 0x000F
rlm@0 63 #define AL_EAXREVERB_ECHO_DEPTH 0x0010
rlm@0 64 #define AL_EAXREVERB_MODULATION_TIME 0x0011
rlm@0 65 #define AL_EAXREVERB_MODULATION_DEPTH 0x0012
rlm@0 66 #define AL_EAXREVERB_AIR_ABSORPTION_GAINHF 0x0013
rlm@0 67 #define AL_EAXREVERB_HFREFERENCE 0x0014
rlm@0 68 #define AL_EAXREVERB_LFREFERENCE 0x0015
rlm@0 69 #define AL_EAXREVERB_ROOM_ROLLOFF_FACTOR 0x0016
rlm@0 70 #define AL_EAXREVERB_DECAY_HFLIMIT 0x0017
rlm@0 71
rlm@0 72 /* Chorus effect parameters */
rlm@0 73 #define AL_CHORUS_WAVEFORM 0x0001
rlm@0 74 #define AL_CHORUS_PHASE 0x0002
rlm@0 75 #define AL_CHORUS_RATE 0x0003
rlm@0 76 #define AL_CHORUS_DEPTH 0x0004
rlm@0 77 #define AL_CHORUS_FEEDBACK 0x0005
rlm@0 78 #define AL_CHORUS_DELAY 0x0006
rlm@0 79
rlm@0 80 /* Distortion effect parameters */
rlm@0 81 #define AL_DISTORTION_EDGE 0x0001
rlm@0 82 #define AL_DISTORTION_GAIN 0x0002
rlm@0 83 #define AL_DISTORTION_LOWPASS_CUTOFF 0x0003
rlm@0 84 #define AL_DISTORTION_EQCENTER 0x0004
rlm@0 85 #define AL_DISTORTION_EQBANDWIDTH 0x0005
rlm@0 86
rlm@0 87 /* Echo effect parameters */
rlm@0 88 #define AL_ECHO_DELAY 0x0001
rlm@0 89 #define AL_ECHO_LRDELAY 0x0002
rlm@0 90 #define AL_ECHO_DAMPING 0x0003
rlm@0 91 #define AL_ECHO_FEEDBACK 0x0004
rlm@0 92 #define AL_ECHO_SPREAD 0x0005
rlm@0 93
rlm@0 94 /* Flanger effect parameters */
rlm@0 95 #define AL_FLANGER_WAVEFORM 0x0001
rlm@0 96 #define AL_FLANGER_PHASE 0x0002
rlm@0 97 #define AL_FLANGER_RATE 0x0003
rlm@0 98 #define AL_FLANGER_DEPTH 0x0004
rlm@0 99 #define AL_FLANGER_FEEDBACK 0x0005
rlm@0 100 #define AL_FLANGER_DELAY 0x0006
rlm@0 101
rlm@0 102 /* Frequency shifter effect parameters */
rlm@0 103 #define AL_FREQUENCY_SHIFTER_FREQUENCY 0x0001
rlm@0 104 #define AL_FREQUENCY_SHIFTER_LEFT_DIRECTION 0x0002
rlm@0 105 #define AL_FREQUENCY_SHIFTER_RIGHT_DIRECTION 0x0003
rlm@0 106
rlm@0 107 /* Vocal morpher effect parameters */
rlm@0 108 #define AL_VOCAL_MORPHER_PHONEMEA 0x0001
rlm@0 109 #define AL_VOCAL_MORPHER_PHONEMEA_COARSE_TUNING 0x0002
rlm@0 110 #define AL_VOCAL_MORPHER_PHONEMEB 0x0003
rlm@0 111 #define AL_VOCAL_MORPHER_PHONEMEB_COARSE_TUNING 0x0004
rlm@0 112 #define AL_VOCAL_MORPHER_WAVEFORM 0x0005
rlm@0 113 #define AL_VOCAL_MORPHER_RATE 0x0006
rlm@0 114
rlm@0 115 /* Pitchshifter effect parameters */
rlm@0 116 #define AL_PITCH_SHIFTER_COARSE_TUNE 0x0001
rlm@0 117 #define AL_PITCH_SHIFTER_FINE_TUNE 0x0002
rlm@0 118
rlm@0 119 /* Ringmodulator effect parameters */
rlm@0 120 #define AL_RING_MODULATOR_FREQUENCY 0x0001
rlm@0 121 #define AL_RING_MODULATOR_HIGHPASS_CUTOFF 0x0002
rlm@0 122 #define AL_RING_MODULATOR_WAVEFORM 0x0003
rlm@0 123
rlm@0 124 /* Autowah effect parameters */
rlm@0 125 #define AL_AUTOWAH_ATTACK_TIME 0x0001
rlm@0 126 #define AL_AUTOWAH_RELEASE_TIME 0x0002
rlm@0 127 #define AL_AUTOWAH_RESONANCE 0x0003
rlm@0 128 #define AL_AUTOWAH_PEAK_GAIN 0x0004
rlm@0 129
rlm@0 130 /* Compressor effect parameters */
rlm@0 131 #define AL_COMPRESSOR_ONOFF 0x0001
rlm@0 132
rlm@0 133 /* Equalizer effect parameters */
rlm@0 134 #define AL_EQUALIZER_LOW_GAIN 0x0001
rlm@0 135 #define AL_EQUALIZER_LOW_CUTOFF 0x0002
rlm@0 136 #define AL_EQUALIZER_MID1_GAIN 0x0003
rlm@0 137 #define AL_EQUALIZER_MID1_CENTER 0x0004
rlm@0 138 #define AL_EQUALIZER_MID1_WIDTH 0x0005
rlm@0 139 #define AL_EQUALIZER_MID2_GAIN 0x0006
rlm@0 140 #define AL_EQUALIZER_MID2_CENTER 0x0007
rlm@0 141 #define AL_EQUALIZER_MID2_WIDTH 0x0008
rlm@0 142 #define AL_EQUALIZER_HIGH_GAIN 0x0009
rlm@0 143 #define AL_EQUALIZER_HIGH_CUTOFF 0x000A
rlm@0 144
rlm@0 145 /* Effect type */
rlm@0 146 #define AL_EFFECT_FIRST_PARAMETER 0x0000
rlm@0 147 #define AL_EFFECT_LAST_PARAMETER 0x8000
rlm@0 148 #define AL_EFFECT_TYPE 0x8001
rlm@0 149
rlm@0 150 /* Effect types, used with the AL_EFFECT_TYPE property */
rlm@0 151 #define AL_EFFECT_NULL 0x0000
rlm@0 152 #define AL_EFFECT_REVERB 0x0001
rlm@0 153 #define AL_EFFECT_CHORUS 0x0002
rlm@0 154 #define AL_EFFECT_DISTORTION 0x0003
rlm@0 155 #define AL_EFFECT_ECHO 0x0004
rlm@0 156 #define AL_EFFECT_FLANGER 0x0005
rlm@0 157 #define AL_EFFECT_FREQUENCY_SHIFTER 0x0006
rlm@0 158 #define AL_EFFECT_VOCAL_MORPHER 0x0007
rlm@0 159 #define AL_EFFECT_PITCH_SHIFTER 0x0008
rlm@0 160 #define AL_EFFECT_RING_MODULATOR 0x0009
rlm@0 161 #define AL_EFFECT_AUTOWAH 0x000A
rlm@0 162 #define AL_EFFECT_COMPRESSOR 0x000B
rlm@0 163 #define AL_EFFECT_EQUALIZER 0x000C
rlm@0 164 #define AL_EFFECT_EAXREVERB 0x8000
rlm@0 165
rlm@0 166 /* Auxiliary Effect Slot properties. */
rlm@0 167 #define AL_EFFECTSLOT_EFFECT 0x0001
rlm@0 168 #define AL_EFFECTSLOT_GAIN 0x0002
rlm@0 169 #define AL_EFFECTSLOT_AUXILIARY_SEND_AUTO 0x0003
rlm@0 170
rlm@0 171 /* NULL Auxiliary Slot ID to disable a source send. */
rlm@0 172 #define AL_EFFECTSLOT_NULL 0x0000
rlm@0 173
rlm@0 174
rlm@0 175 /* Filter properties. */
rlm@0 176
rlm@0 177 /* Lowpass filter parameters */
rlm@0 178 #define AL_LOWPASS_GAIN 0x0001
rlm@0 179 #define AL_LOWPASS_GAINHF 0x0002
rlm@0 180
rlm@0 181 /* Highpass filter parameters */
rlm@0 182 #define AL_HIGHPASS_GAIN 0x0001
rlm@0 183 #define AL_HIGHPASS_GAINLF 0x0002
rlm@0 184
rlm@0 185 /* Bandpass filter parameters */
rlm@0 186 #define AL_BANDPASS_GAIN 0x0001
rlm@0 187 #define AL_BANDPASS_GAINLF 0x0002
rlm@0 188 #define AL_BANDPASS_GAINHF 0x0003
rlm@0 189
rlm@0 190 /* Filter type */
rlm@0 191 #define AL_FILTER_FIRST_PARAMETER 0x0000
rlm@0 192 #define AL_FILTER_LAST_PARAMETER 0x8000
rlm@0 193 #define AL_FILTER_TYPE 0x8001
rlm@0 194
rlm@0 195 /* Filter types, used with the AL_FILTER_TYPE property */
rlm@0 196 #define AL_FILTER_NULL 0x0000
rlm@0 197 #define AL_FILTER_LOWPASS 0x0001
rlm@0 198 #define AL_FILTER_HIGHPASS 0x0002
rlm@0 199 #define AL_FILTER_BANDPASS 0x0003
rlm@0 200
rlm@0 201
rlm@0 202 /* Effect object function types. */
rlm@0 203 typedef void (AL_APIENTRY *LPALGENEFFECTS)(ALsizei, ALuint*);
rlm@0 204 typedef void (AL_APIENTRY *LPALDELETEEFFECTS)(ALsizei, ALuint*);
rlm@0 205 typedef ALboolean (AL_APIENTRY *LPALISEFFECT)(ALuint);
rlm@0 206 typedef void (AL_APIENTRY *LPALEFFECTI)(ALuint, ALenum, ALint);
rlm@0 207 typedef void (AL_APIENTRY *LPALEFFECTIV)(ALuint, ALenum, ALint*);
rlm@0 208 typedef void (AL_APIENTRY *LPALEFFECTF)(ALuint, ALenum, ALfloat);
rlm@0 209 typedef void (AL_APIENTRY *LPALEFFECTFV)(ALuint, ALenum, ALfloat*);
rlm@0 210 typedef void (AL_APIENTRY *LPALGETEFFECTI)(ALuint, ALenum, ALint*);
rlm@0 211 typedef void (AL_APIENTRY *LPALGETEFFECTIV)(ALuint, ALenum, ALint*);
rlm@0 212 typedef void (AL_APIENTRY *LPALGETEFFECTF)(ALuint, ALenum, ALfloat*);
rlm@0 213 typedef void (AL_APIENTRY *LPALGETEFFECTFV)(ALuint, ALenum, ALfloat*);
rlm@0 214
rlm@0 215 /* Filter object function types. */
rlm@0 216 typedef void (AL_APIENTRY *LPALGENFILTERS)(ALsizei, ALuint*);
rlm@0 217 typedef void (AL_APIENTRY *LPALDELETEFILTERS)(ALsizei, ALuint*);
rlm@0 218 typedef ALboolean (AL_APIENTRY *LPALISFILTER)(ALuint);
rlm@0 219 typedef void (AL_APIENTRY *LPALFILTERI)(ALuint, ALenum, ALint);
rlm@0 220 typedef void (AL_APIENTRY *LPALFILTERIV)(ALuint, ALenum, ALint*);
rlm@0 221 typedef void (AL_APIENTRY *LPALFILTERF)(ALuint, ALenum, ALfloat);
rlm@0 222 typedef void (AL_APIENTRY *LPALFILTERFV)(ALuint, ALenum, ALfloat*);
rlm@0 223 typedef void (AL_APIENTRY *LPALGETFILTERI)(ALuint, ALenum, ALint*);
rlm@0 224 typedef void (AL_APIENTRY *LPALGETFILTERIV)(ALuint, ALenum, ALint*);
rlm@0 225 typedef void (AL_APIENTRY *LPALGETFILTERF)(ALuint, ALenum, ALfloat*);
rlm@0 226 typedef void (AL_APIENTRY *LPALGETFILTERFV)(ALuint, ALenum, ALfloat*);
rlm@0 227
rlm@0 228 /* Auxiliary Effect Slot object function types. */
rlm@0 229 typedef void (AL_APIENTRY *LPALGENAUXILIARYEFFECTSLOTS)(ALsizei, ALuint*);
rlm@0 230 typedef void (AL_APIENTRY *LPALDELETEAUXILIARYEFFECTSLOTS)(ALsizei, ALuint*);
rlm@0 231 typedef ALboolean (AL_APIENTRY *LPALISAUXILIARYEFFECTSLOT)(ALuint);
rlm@0 232 typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTI)(ALuint, ALenum, ALint);
rlm@0 233 typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTIV)(ALuint, ALenum, ALint*);
rlm@0 234 typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTF)(ALuint, ALenum, ALfloat);
rlm@0 235 typedef void (AL_APIENTRY *LPALAUXILIARYEFFECTSLOTFV)(ALuint, ALenum, ALfloat*);
rlm@0 236 typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTI)(ALuint, ALenum, ALint*);
rlm@0 237 typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTIV)(ALuint, ALenum, ALint*);
rlm@0 238 typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTF)(ALuint, ALenum, ALfloat*);
rlm@0 239 typedef void (AL_APIENTRY *LPALGETAUXILIARYEFFECTSLOTFV)(ALuint, ALenum, ALfloat*);
rlm@0 240
rlm@0 241 #ifdef AL_ALEXT_PROTOTYPES
rlm@0 242 AL_API ALvoid AL_APIENTRY alGenEffects(ALsizei n, ALuint *effects);
rlm@0 243 AL_API ALvoid AL_APIENTRY alDeleteEffects(ALsizei n, ALuint *effects);
rlm@0 244 AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect);
rlm@0 245 AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue);
rlm@0 246 AL_API ALvoid AL_APIENTRY alEffectiv(ALuint effect, ALenum param, ALint *piValues);
rlm@0 247 AL_API ALvoid AL_APIENTRY alEffectf(ALuint effect, ALenum param, ALfloat flValue);
rlm@0 248 AL_API ALvoid AL_APIENTRY alEffectfv(ALuint effect, ALenum param, ALfloat *pflValues);
rlm@0 249 AL_API ALvoid AL_APIENTRY alGetEffecti(ALuint effect, ALenum param, ALint *piValue);
rlm@0 250 AL_API ALvoid AL_APIENTRY alGetEffectiv(ALuint effect, ALenum param, ALint *piValues);
rlm@0 251 AL_API ALvoid AL_APIENTRY alGetEffectf(ALuint effect, ALenum param, ALfloat *pflValue);
rlm@0 252 AL_API ALvoid AL_APIENTRY alGetEffectfv(ALuint effect, ALenum param, ALfloat *pflValues);
rlm@0 253
rlm@0 254 AL_API ALvoid AL_APIENTRY alGenFilters(ALsizei n, ALuint *filters);
rlm@0 255 AL_API ALvoid AL_APIENTRY alDeleteFilters(ALsizei n, ALuint *filters);
rlm@0 256 AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter);
rlm@0 257 AL_API ALvoid AL_APIENTRY alFilteri(ALuint filter, ALenum param, ALint iValue);
rlm@0 258 AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValues);
rlm@0 259 AL_API ALvoid AL_APIENTRY alFilterf(ALuint filter, ALenum param, ALfloat flValue);
rlm@0 260 AL_API ALvoid AL_APIENTRY alFilterfv(ALuint filter, ALenum param, ALfloat *pflValues);
rlm@0 261 AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piValue);
rlm@0 262 AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piValues);
rlm@0 263 AL_API ALvoid AL_APIENTRY alGetFilterf(ALuint filter, ALenum param, ALfloat *pflValue);
rlm@0 264 AL_API ALvoid AL_APIENTRY alGetFilterfv(ALuint filter, ALenum param, ALfloat *pflValues);
rlm@0 265
rlm@0 266 AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots);
rlm@0 267 AL_API ALvoid AL_APIENTRY alDeleteAuxiliaryEffectSlots(ALsizei n, ALuint *effectslots);
rlm@0 268 AL_API ALboolean AL_APIENTRY alIsAuxiliaryEffectSlot(ALuint effectslot);
rlm@0 269 AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSloti(ALuint effectslot, ALenum param, ALint iValue);
rlm@0 270 AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotiv(ALuint effectslot, ALenum param, ALint *piValues);
rlm@0 271 AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotf(ALuint effectslot, ALenum param, ALfloat flValue);
rlm@0 272 AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotfv(ALuint effectslot, ALenum param, ALfloat *pflValues);
rlm@0 273 AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSloti(ALuint effectslot, ALenum param, ALint *piValue);
rlm@0 274 AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotiv(ALuint effectslot, ALenum param, ALint *piValues);
rlm@0 275 AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotf(ALuint effectslot, ALenum param, ALfloat *pflValue);
rlm@0 276 AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotfv(ALuint effectslot, ALenum param, ALfloat *pflValues);
rlm@0 277 #endif
rlm@0 278
rlm@0 279 /* Filter ranges and defaults. */
rlm@0 280
rlm@0 281 /* Lowpass filter */
rlm@0 282 #define AL_LOWPASS_MIN_GAIN (0.0f)
rlm@0 283 #define AL_LOWPASS_MAX_GAIN (1.0f)
rlm@0 284 #define AL_LOWPASS_DEFAULT_GAIN (1.0f)
rlm@0 285
rlm@0 286 #define AL_LOWPASS_MIN_GAINHF (0.0f)
rlm@0 287 #define AL_LOWPASS_MAX_GAINHF (1.0f)
rlm@0 288 #define AL_LOWPASS_DEFAULT_GAINHF (1.0f)
rlm@0 289
rlm@0 290 /* Highpass filter */
rlm@0 291 #define AL_HIGHPASS_MIN_GAIN (0.0f)
rlm@0 292 #define AL_HIGHPASS_MAX_GAIN (1.0f)
rlm@0 293 #define AL_HIGHPASS_DEFAULT_GAIN (1.0f)
rlm@0 294
rlm@0 295 #define AL_HIGHPASS_MIN_GAINLF (0.0f)
rlm@0 296 #define AL_HIGHPASS_MAX_GAINLF (1.0f)
rlm@0 297 #define AL_HIGHPASS_DEFAULT_GAINLF (1.0f)
rlm@0 298
rlm@0 299 /* Bandpass filter */
rlm@0 300 #define AL_BANDPASS_MIN_GAIN (0.0f)
rlm@0 301 #define AL_BANDPASS_MAX_GAIN (1.0f)
rlm@0 302 #define AL_BANDPASS_DEFAULT_GAIN (1.0f)
rlm@0 303
rlm@0 304 #define AL_BANDPASS_MIN_GAINHF (0.0f)
rlm@0 305 #define AL_BANDPASS_MAX_GAINHF (1.0f)
rlm@0 306 #define AL_BANDPASS_DEFAULT_GAINHF (1.0f)
rlm@0 307
rlm@0 308 #define AL_BANDPASS_MIN_GAINLF (0.0f)
rlm@0 309 #define AL_BANDPASS_MAX_GAINLF (1.0f)
rlm@0 310 #define AL_BANDPASS_DEFAULT_GAINLF (1.0f)
rlm@0 311
rlm@0 312
rlm@0 313 /* Effect parameter ranges and defaults. */
rlm@0 314
rlm@0 315 /* Standard reverb effect */
rlm@0 316 #define AL_REVERB_MIN_DENSITY (0.0f)
rlm@0 317 #define AL_REVERB_MAX_DENSITY (1.0f)
rlm@0 318 #define AL_REVERB_DEFAULT_DENSITY (1.0f)
rlm@0 319
rlm@0 320 #define AL_REVERB_MIN_DIFFUSION (0.0f)
rlm@0 321 #define AL_REVERB_MAX_DIFFUSION (1.0f)
rlm@0 322 #define AL_REVERB_DEFAULT_DIFFUSION (1.0f)
rlm@0 323
rlm@0 324 #define AL_REVERB_MIN_GAIN (0.0f)
rlm@0 325 #define AL_REVERB_MAX_GAIN (1.0f)
rlm@0 326 #define AL_REVERB_DEFAULT_GAIN (0.32f)
rlm@0 327
rlm@0 328 #define AL_REVERB_MIN_GAINHF (0.0f)
rlm@0 329 #define AL_REVERB_MAX_GAINHF (1.0f)
rlm@0 330 #define AL_REVERB_DEFAULT_GAINHF (0.89f)
rlm@0 331
rlm@0 332 #define AL_REVERB_MIN_DECAY_TIME (0.1f)
rlm@0 333 #define AL_REVERB_MAX_DECAY_TIME (20.0f)
rlm@0 334 #define AL_REVERB_DEFAULT_DECAY_TIME (1.49f)
rlm@0 335
rlm@0 336 #define AL_REVERB_MIN_DECAY_HFRATIO (0.1f)
rlm@0 337 #define AL_REVERB_MAX_DECAY_HFRATIO (2.0f)
rlm@0 338 #define AL_REVERB_DEFAULT_DECAY_HFRATIO (0.83f)
rlm@0 339
rlm@0 340 #define AL_REVERB_MIN_REFLECTIONS_GAIN (0.0f)
rlm@0 341 #define AL_REVERB_MAX_REFLECTIONS_GAIN (3.16f)
rlm@0 342 #define AL_REVERB_DEFAULT_REFLECTIONS_GAIN (0.05f)
rlm@0 343
rlm@0 344 #define AL_REVERB_MIN_REFLECTIONS_DELAY (0.0f)
rlm@0 345 #define AL_REVERB_MAX_REFLECTIONS_DELAY (0.3f)
rlm@0 346 #define AL_REVERB_DEFAULT_REFLECTIONS_DELAY (0.007f)
rlm@0 347
rlm@0 348 #define AL_REVERB_MIN_LATE_REVERB_GAIN (0.0f)
rlm@0 349 #define AL_REVERB_MAX_LATE_REVERB_GAIN (10.0f)
rlm@0 350 #define AL_REVERB_DEFAULT_LATE_REVERB_GAIN (1.26f)
rlm@0 351
rlm@0 352 #define AL_REVERB_MIN_LATE_REVERB_DELAY (0.0f)
rlm@0 353 #define AL_REVERB_MAX_LATE_REVERB_DELAY (0.1f)
rlm@0 354 #define AL_REVERB_DEFAULT_LATE_REVERB_DELAY (0.011f)
rlm@0 355
rlm@0 356 #define AL_REVERB_MIN_AIR_ABSORPTION_GAINHF (0.892f)
rlm@0 357 #define AL_REVERB_MAX_AIR_ABSORPTION_GAINHF (1.0f)
rlm@0 358 #define AL_REVERB_DEFAULT_AIR_ABSORPTION_GAINHF (0.994f)
rlm@0 359
rlm@0 360 #define AL_REVERB_MIN_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 361 #define AL_REVERB_MAX_ROOM_ROLLOFF_FACTOR (10.0f)
rlm@0 362 #define AL_REVERB_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 363
rlm@0 364 #define AL_REVERB_MIN_DECAY_HFLIMIT AL_FALSE
rlm@0 365 #define AL_REVERB_MAX_DECAY_HFLIMIT AL_TRUE
rlm@0 366 #define AL_REVERB_DEFAULT_DECAY_HFLIMIT AL_TRUE
rlm@0 367
rlm@0 368 /* EAX reverb effect */
rlm@0 369 #define AL_EAXREVERB_MIN_DENSITY (0.0f)
rlm@0 370 #define AL_EAXREVERB_MAX_DENSITY (1.0f)
rlm@0 371 #define AL_EAXREVERB_DEFAULT_DENSITY (1.0f)
rlm@0 372
rlm@0 373 #define AL_EAXREVERB_MIN_DIFFUSION (0.0f)
rlm@0 374 #define AL_EAXREVERB_MAX_DIFFUSION (1.0f)
rlm@0 375 #define AL_EAXREVERB_DEFAULT_DIFFUSION (1.0f)
rlm@0 376
rlm@0 377 #define AL_EAXREVERB_MIN_GAIN (0.0f)
rlm@0 378 #define AL_EAXREVERB_MAX_GAIN (1.0f)
rlm@0 379 #define AL_EAXREVERB_DEFAULT_GAIN (0.32f)
rlm@0 380
rlm@0 381 #define AL_EAXREVERB_MIN_GAINHF (0.0f)
rlm@0 382 #define AL_EAXREVERB_MAX_GAINHF (1.0f)
rlm@0 383 #define AL_EAXREVERB_DEFAULT_GAINHF (0.89f)
rlm@0 384
rlm@0 385 #define AL_EAXREVERB_MIN_GAINLF (0.0f)
rlm@0 386 #define AL_EAXREVERB_MAX_GAINLF (1.0f)
rlm@0 387 #define AL_EAXREVERB_DEFAULT_GAINLF (1.0f)
rlm@0 388
rlm@0 389 #define AL_EAXREVERB_MIN_DECAY_TIME (0.1f)
rlm@0 390 #define AL_EAXREVERB_MAX_DECAY_TIME (20.0f)
rlm@0 391 #define AL_EAXREVERB_DEFAULT_DECAY_TIME (1.49f)
rlm@0 392
rlm@0 393 #define AL_EAXREVERB_MIN_DECAY_HFRATIO (0.1f)
rlm@0 394 #define AL_EAXREVERB_MAX_DECAY_HFRATIO (2.0f)
rlm@0 395 #define AL_EAXREVERB_DEFAULT_DECAY_HFRATIO (0.83f)
rlm@0 396
rlm@0 397 #define AL_EAXREVERB_MIN_DECAY_LFRATIO (0.1f)
rlm@0 398 #define AL_EAXREVERB_MAX_DECAY_LFRATIO (2.0f)
rlm@0 399 #define AL_EAXREVERB_DEFAULT_DECAY_LFRATIO (1.0f)
rlm@0 400
rlm@0 401 #define AL_EAXREVERB_MIN_REFLECTIONS_GAIN (0.0f)
rlm@0 402 #define AL_EAXREVERB_MAX_REFLECTIONS_GAIN (3.16f)
rlm@0 403 #define AL_EAXREVERB_DEFAULT_REFLECTIONS_GAIN (0.05f)
rlm@0 404
rlm@0 405 #define AL_EAXREVERB_MIN_REFLECTIONS_DELAY (0.0f)
rlm@0 406 #define AL_EAXREVERB_MAX_REFLECTIONS_DELAY (0.3f)
rlm@0 407 #define AL_EAXREVERB_DEFAULT_REFLECTIONS_DELAY (0.007f)
rlm@0 408
rlm@0 409 #define AL_EAXREVERB_DEFAULT_REFLECTIONS_PAN_XYZ (0.0f)
rlm@0 410
rlm@0 411 #define AL_EAXREVERB_MIN_LATE_REVERB_GAIN (0.0f)
rlm@0 412 #define AL_EAXREVERB_MAX_LATE_REVERB_GAIN (10.0f)
rlm@0 413 #define AL_EAXREVERB_DEFAULT_LATE_REVERB_GAIN (1.26f)
rlm@0 414
rlm@0 415 #define AL_EAXREVERB_MIN_LATE_REVERB_DELAY (0.0f)
rlm@0 416 #define AL_EAXREVERB_MAX_LATE_REVERB_DELAY (0.1f)
rlm@0 417 #define AL_EAXREVERB_DEFAULT_LATE_REVERB_DELAY (0.011f)
rlm@0 418
rlm@0 419 #define AL_EAXREVERB_DEFAULT_LATE_REVERB_PAN_XYZ (0.0f)
rlm@0 420
rlm@0 421 #define AL_EAXREVERB_MIN_ECHO_TIME (0.075f)
rlm@0 422 #define AL_EAXREVERB_MAX_ECHO_TIME (0.25f)
rlm@0 423 #define AL_EAXREVERB_DEFAULT_ECHO_TIME (0.25f)
rlm@0 424
rlm@0 425 #define AL_EAXREVERB_MIN_ECHO_DEPTH (0.0f)
rlm@0 426 #define AL_EAXREVERB_MAX_ECHO_DEPTH (1.0f)
rlm@0 427 #define AL_EAXREVERB_DEFAULT_ECHO_DEPTH (0.0f)
rlm@0 428
rlm@0 429 #define AL_EAXREVERB_MIN_MODULATION_TIME (0.04f)
rlm@0 430 #define AL_EAXREVERB_MAX_MODULATION_TIME (4.0f)
rlm@0 431 #define AL_EAXREVERB_DEFAULT_MODULATION_TIME (0.25f)
rlm@0 432
rlm@0 433 #define AL_EAXREVERB_MIN_MODULATION_DEPTH (0.0f)
rlm@0 434 #define AL_EAXREVERB_MAX_MODULATION_DEPTH (1.0f)
rlm@0 435 #define AL_EAXREVERB_DEFAULT_MODULATION_DEPTH (0.0f)
rlm@0 436
rlm@0 437 #define AL_EAXREVERB_MIN_AIR_ABSORPTION_GAINHF (0.892f)
rlm@0 438 #define AL_EAXREVERB_MAX_AIR_ABSORPTION_GAINHF (1.0f)
rlm@0 439 #define AL_EAXREVERB_DEFAULT_AIR_ABSORPTION_GAINHF (0.994f)
rlm@0 440
rlm@0 441 #define AL_EAXREVERB_MIN_HFREFERENCE (1000.0f)
rlm@0 442 #define AL_EAXREVERB_MAX_HFREFERENCE (20000.0f)
rlm@0 443 #define AL_EAXREVERB_DEFAULT_HFREFERENCE (5000.0f)
rlm@0 444
rlm@0 445 #define AL_EAXREVERB_MIN_LFREFERENCE (20.0f)
rlm@0 446 #define AL_EAXREVERB_MAX_LFREFERENCE (1000.0f)
rlm@0 447 #define AL_EAXREVERB_DEFAULT_LFREFERENCE (250.0f)
rlm@0 448
rlm@0 449 #define AL_EAXREVERB_MIN_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 450 #define AL_EAXREVERB_MAX_ROOM_ROLLOFF_FACTOR (10.0f)
rlm@0 451 #define AL_EAXREVERB_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 452
rlm@0 453 #define AL_EAXREVERB_MIN_DECAY_HFLIMIT AL_FALSE
rlm@0 454 #define AL_EAXREVERB_MAX_DECAY_HFLIMIT AL_TRUE
rlm@0 455 #define AL_EAXREVERB_DEFAULT_DECAY_HFLIMIT AL_TRUE
rlm@0 456
rlm@0 457 /* Chorus effect */
rlm@0 458 #define AL_CHORUS_WAVEFORM_SINUSOID (0)
rlm@0 459 #define AL_CHORUS_WAVEFORM_TRIANGLE (1)
rlm@0 460
rlm@0 461 #define AL_CHORUS_MIN_WAVEFORM (0)
rlm@0 462 #define AL_CHORUS_MAX_WAVEFORM (1)
rlm@0 463 #define AL_CHORUS_DEFAULT_WAVEFORM (1)
rlm@0 464
rlm@0 465 #define AL_CHORUS_MIN_PHASE (-180)
rlm@0 466 #define AL_CHORUS_MAX_PHASE (180)
rlm@0 467 #define AL_CHORUS_DEFAULT_PHASE (90)
rlm@0 468
rlm@0 469 #define AL_CHORUS_MIN_RATE (0.0f)
rlm@0 470 #define AL_CHORUS_MAX_RATE (10.0f)
rlm@0 471 #define AL_CHORUS_DEFAULT_RATE (1.1f)
rlm@0 472
rlm@0 473 #define AL_CHORUS_MIN_DEPTH (0.0f)
rlm@0 474 #define AL_CHORUS_MAX_DEPTH (1.0f)
rlm@0 475 #define AL_CHORUS_DEFAULT_DEPTH (0.1f)
rlm@0 476
rlm@0 477 #define AL_CHORUS_MIN_FEEDBACK (-1.0f)
rlm@0 478 #define AL_CHORUS_MAX_FEEDBACK (1.0f)
rlm@0 479 #define AL_CHORUS_DEFAULT_FEEDBACK (0.25f)
rlm@0 480
rlm@0 481 #define AL_CHORUS_MIN_DELAY (0.0f)
rlm@0 482 #define AL_CHORUS_MAX_DELAY (0.016f)
rlm@0 483 #define AL_CHORUS_DEFAULT_DELAY (0.016f)
rlm@0 484
rlm@0 485 /* Distortion effect */
rlm@0 486 #define AL_DISTORTION_MIN_EDGE (0.0f)
rlm@0 487 #define AL_DISTORTION_MAX_EDGE (1.0f)
rlm@0 488 #define AL_DISTORTION_DEFAULT_EDGE (0.2f)
rlm@0 489
rlm@0 490 #define AL_DISTORTION_MIN_GAIN (0.01f)
rlm@0 491 #define AL_DISTORTION_MAX_GAIN (1.0f)
rlm@0 492 #define AL_DISTORTION_DEFAULT_GAIN (0.05f)
rlm@0 493
rlm@0 494 #define AL_DISTORTION_MIN_LOWPASS_CUTOFF (80.0f)
rlm@0 495 #define AL_DISTORTION_MAX_LOWPASS_CUTOFF (24000.0f)
rlm@0 496 #define AL_DISTORTION_DEFAULT_LOWPASS_CUTOFF (8000.0f)
rlm@0 497
rlm@0 498 #define AL_DISTORTION_MIN_EQCENTER (80.0f)
rlm@0 499 #define AL_DISTORTION_MAX_EQCENTER (24000.0f)
rlm@0 500 #define AL_DISTORTION_DEFAULT_EQCENTER (3600.0f)
rlm@0 501
rlm@0 502 #define AL_DISTORTION_MIN_EQBANDWIDTH (80.0f)
rlm@0 503 #define AL_DISTORTION_MAX_EQBANDWIDTH (24000.0f)
rlm@0 504 #define AL_DISTORTION_DEFAULT_EQBANDWIDTH (3600.0f)
rlm@0 505
rlm@0 506 /* Echo effect */
rlm@0 507 #define AL_ECHO_MIN_DELAY (0.0f)
rlm@0 508 #define AL_ECHO_MAX_DELAY (0.207f)
rlm@0 509 #define AL_ECHO_DEFAULT_DELAY (0.1f)
rlm@0 510
rlm@0 511 #define AL_ECHO_MIN_LRDELAY (0.0f)
rlm@0 512 #define AL_ECHO_MAX_LRDELAY (0.404f)
rlm@0 513 #define AL_ECHO_DEFAULT_LRDELAY (0.1f)
rlm@0 514
rlm@0 515 #define AL_ECHO_MIN_DAMPING (0.0f)
rlm@0 516 #define AL_ECHO_MAX_DAMPING (0.99f)
rlm@0 517 #define AL_ECHO_DEFAULT_DAMPING (0.5f)
rlm@0 518
rlm@0 519 #define AL_ECHO_MIN_FEEDBACK (0.0f)
rlm@0 520 #define AL_ECHO_MAX_FEEDBACK (1.0f)
rlm@0 521 #define AL_ECHO_DEFAULT_FEEDBACK (0.5f)
rlm@0 522
rlm@0 523 #define AL_ECHO_MIN_SPREAD (-1.0f)
rlm@0 524 #define AL_ECHO_MAX_SPREAD (1.0f)
rlm@0 525 #define AL_ECHO_DEFAULT_SPREAD (-1.0f)
rlm@0 526
rlm@0 527 /* Flanger effect */
rlm@0 528 #define AL_FLANGER_WAVEFORM_SINUSOID (0)
rlm@0 529 #define AL_FLANGER_WAVEFORM_TRIANGLE (1)
rlm@0 530
rlm@0 531 #define AL_FLANGER_MIN_WAVEFORM (0)
rlm@0 532 #define AL_FLANGER_MAX_WAVEFORM (1)
rlm@0 533 #define AL_FLANGER_DEFAULT_WAVEFORM (1)
rlm@0 534
rlm@0 535 #define AL_FLANGER_MIN_PHASE (-180)
rlm@0 536 #define AL_FLANGER_MAX_PHASE (180)
rlm@0 537 #define AL_FLANGER_DEFAULT_PHASE (0)
rlm@0 538
rlm@0 539 #define AL_FLANGER_MIN_RATE (0.0f)
rlm@0 540 #define AL_FLANGER_MAX_RATE (10.0f)
rlm@0 541 #define AL_FLANGER_DEFAULT_RATE (0.27f)
rlm@0 542
rlm@0 543 #define AL_FLANGER_MIN_DEPTH (0.0f)
rlm@0 544 #define AL_FLANGER_MAX_DEPTH (1.0f)
rlm@0 545 #define AL_FLANGER_DEFAULT_DEPTH (1.0f)
rlm@0 546
rlm@0 547 #define AL_FLANGER_MIN_FEEDBACK (-1.0f)
rlm@0 548 #define AL_FLANGER_MAX_FEEDBACK (1.0f)
rlm@0 549 #define AL_FLANGER_DEFAULT_FEEDBACK (-0.5f)
rlm@0 550
rlm@0 551 #define AL_FLANGER_MIN_DELAY (0.0f)
rlm@0 552 #define AL_FLANGER_MAX_DELAY (0.004f)
rlm@0 553 #define AL_FLANGER_DEFAULT_DELAY (0.002f)
rlm@0 554
rlm@0 555 /* Frequency shifter effect */
rlm@0 556 #define AL_FREQUENCY_SHIFTER_MIN_FREQUENCY (0.0f)
rlm@0 557 #define AL_FREQUENCY_SHIFTER_MAX_FREQUENCY (24000.0f)
rlm@0 558 #define AL_FREQUENCY_SHIFTER_DEFAULT_FREQUENCY (0.0f)
rlm@0 559
rlm@0 560 #define AL_FREQUENCY_SHIFTER_MIN_LEFT_DIRECTION (0)
rlm@0 561 #define AL_FREQUENCY_SHIFTER_MAX_LEFT_DIRECTION (2)
rlm@0 562 #define AL_FREQUENCY_SHIFTER_DEFAULT_LEFT_DIRECTION (0)
rlm@0 563
rlm@0 564 #define AL_FREQUENCY_SHIFTER_DIRECTION_DOWN (0)
rlm@0 565 #define AL_FREQUENCY_SHIFTER_DIRECTION_UP (1)
rlm@0 566 #define AL_FREQUENCY_SHIFTER_DIRECTION_OFF (2)
rlm@0 567
rlm@0 568 #define AL_FREQUENCY_SHIFTER_MIN_RIGHT_DIRECTION (0)
rlm@0 569 #define AL_FREQUENCY_SHIFTER_MAX_RIGHT_DIRECTION (2)
rlm@0 570 #define AL_FREQUENCY_SHIFTER_DEFAULT_RIGHT_DIRECTION (0)
rlm@0 571
rlm@0 572 /* Vocal morpher effect */
rlm@0 573 #define AL_VOCAL_MORPHER_MIN_PHONEMEA (0)
rlm@0 574 #define AL_VOCAL_MORPHER_MAX_PHONEMEA (29)
rlm@0 575 #define AL_VOCAL_MORPHER_DEFAULT_PHONEMEA (0)
rlm@0 576
rlm@0 577 #define AL_VOCAL_MORPHER_MIN_PHONEMEA_COARSE_TUNING (-24)
rlm@0 578 #define AL_VOCAL_MORPHER_MAX_PHONEMEA_COARSE_TUNING (24)
rlm@0 579 #define AL_VOCAL_MORPHER_DEFAULT_PHONEMEA_COARSE_TUNING (0)
rlm@0 580
rlm@0 581 #define AL_VOCAL_MORPHER_MIN_PHONEMEB (0)
rlm@0 582 #define AL_VOCAL_MORPHER_MAX_PHONEMEB (29)
rlm@0 583 #define AL_VOCAL_MORPHER_DEFAULT_PHONEMEB (10)
rlm@0 584
rlm@0 585 #define AL_VOCAL_MORPHER_MIN_PHONEMEB_COARSE_TUNING (-24)
rlm@0 586 #define AL_VOCAL_MORPHER_MAX_PHONEMEB_COARSE_TUNING (24)
rlm@0 587 #define AL_VOCAL_MORPHER_DEFAULT_PHONEMEB_COARSE_TUNING (0)
rlm@0 588
rlm@0 589 #define AL_VOCAL_MORPHER_PHONEME_A (0)
rlm@0 590 #define AL_VOCAL_MORPHER_PHONEME_E (1)
rlm@0 591 #define AL_VOCAL_MORPHER_PHONEME_I (2)
rlm@0 592 #define AL_VOCAL_MORPHER_PHONEME_O (3)
rlm@0 593 #define AL_VOCAL_MORPHER_PHONEME_U (4)
rlm@0 594 #define AL_VOCAL_MORPHER_PHONEME_AA (5)
rlm@0 595 #define AL_VOCAL_MORPHER_PHONEME_AE (6)
rlm@0 596 #define AL_VOCAL_MORPHER_PHONEME_AH (7)
rlm@0 597 #define AL_VOCAL_MORPHER_PHONEME_AO (8)
rlm@0 598 #define AL_VOCAL_MORPHER_PHONEME_EH (9)
rlm@0 599 #define AL_VOCAL_MORPHER_PHONEME_ER (10)
rlm@0 600 #define AL_VOCAL_MORPHER_PHONEME_IH (11)
rlm@0 601 #define AL_VOCAL_MORPHER_PHONEME_IY (12)
rlm@0 602 #define AL_VOCAL_MORPHER_PHONEME_UH (13)
rlm@0 603 #define AL_VOCAL_MORPHER_PHONEME_UW (14)
rlm@0 604 #define AL_VOCAL_MORPHER_PHONEME_B (15)
rlm@0 605 #define AL_VOCAL_MORPHER_PHONEME_D (16)
rlm@0 606 #define AL_VOCAL_MORPHER_PHONEME_F (17)
rlm@0 607 #define AL_VOCAL_MORPHER_PHONEME_G (18)
rlm@0 608 #define AL_VOCAL_MORPHER_PHONEME_J (19)
rlm@0 609 #define AL_VOCAL_MORPHER_PHONEME_K (20)
rlm@0 610 #define AL_VOCAL_MORPHER_PHONEME_L (21)
rlm@0 611 #define AL_VOCAL_MORPHER_PHONEME_M (22)
rlm@0 612 #define AL_VOCAL_MORPHER_PHONEME_N (23)
rlm@0 613 #define AL_VOCAL_MORPHER_PHONEME_P (24)
rlm@0 614 #define AL_VOCAL_MORPHER_PHONEME_R (25)
rlm@0 615 #define AL_VOCAL_MORPHER_PHONEME_S (26)
rlm@0 616 #define AL_VOCAL_MORPHER_PHONEME_T (27)
rlm@0 617 #define AL_VOCAL_MORPHER_PHONEME_V (28)
rlm@0 618 #define AL_VOCAL_MORPHER_PHONEME_Z (29)
rlm@0 619
rlm@0 620 #define AL_VOCAL_MORPHER_WAVEFORM_SINUSOID (0)
rlm@0 621 #define AL_VOCAL_MORPHER_WAVEFORM_TRIANGLE (1)
rlm@0 622 #define AL_VOCAL_MORPHER_WAVEFORM_SAWTOOTH (2)
rlm@0 623
rlm@0 624 #define AL_VOCAL_MORPHER_MIN_WAVEFORM (0)
rlm@0 625 #define AL_VOCAL_MORPHER_MAX_WAVEFORM (2)
rlm@0 626 #define AL_VOCAL_MORPHER_DEFAULT_WAVEFORM (0)
rlm@0 627
rlm@0 628 #define AL_VOCAL_MORPHER_MIN_RATE (0.0f)
rlm@0 629 #define AL_VOCAL_MORPHER_MAX_RATE (10.0f)
rlm@0 630 #define AL_VOCAL_MORPHER_DEFAULT_RATE (1.41f)
rlm@0 631
rlm@0 632 /* Pitch shifter effect */
rlm@0 633 #define AL_PITCH_SHIFTER_MIN_COARSE_TUNE (-12)
rlm@0 634 #define AL_PITCH_SHIFTER_MAX_COARSE_TUNE (12)
rlm@0 635 #define AL_PITCH_SHIFTER_DEFAULT_COARSE_TUNE (12)
rlm@0 636
rlm@0 637 #define AL_PITCH_SHIFTER_MIN_FINE_TUNE (-50)
rlm@0 638 #define AL_PITCH_SHIFTER_MAX_FINE_TUNE (50)
rlm@0 639 #define AL_PITCH_SHIFTER_DEFAULT_FINE_TUNE (0)
rlm@0 640
rlm@0 641 /* Ring modulator effect */
rlm@0 642 #define AL_RING_MODULATOR_MIN_FREQUENCY (0.0f)
rlm@0 643 #define AL_RING_MODULATOR_MAX_FREQUENCY (8000.0f)
rlm@0 644 #define AL_RING_MODULATOR_DEFAULT_FREQUENCY (440.0f)
rlm@0 645
rlm@0 646 #define AL_RING_MODULATOR_MIN_HIGHPASS_CUTOFF (0.0f)
rlm@0 647 #define AL_RING_MODULATOR_MAX_HIGHPASS_CUTOFF (24000.0f)
rlm@0 648 #define AL_RING_MODULATOR_DEFAULT_HIGHPASS_CUTOFF (800.0f)
rlm@0 649
rlm@0 650 #define AL_RING_MODULATOR_SINUSOID (0)
rlm@0 651 #define AL_RING_MODULATOR_SAWTOOTH (1)
rlm@0 652 #define AL_RING_MODULATOR_SQUARE (2)
rlm@0 653
rlm@0 654 #define AL_RING_MODULATOR_MIN_WAVEFORM (0)
rlm@0 655 #define AL_RING_MODULATOR_MAX_WAVEFORM (2)
rlm@0 656 #define AL_RING_MODULATOR_DEFAULT_WAVEFORM (0)
rlm@0 657
rlm@0 658 /* Autowah effect */
rlm@0 659 #define AL_AUTOWAH_MIN_ATTACK_TIME (0.0001f)
rlm@0 660 #define AL_AUTOWAH_MAX_ATTACK_TIME (1.0f)
rlm@0 661 #define AL_AUTOWAH_DEFAULT_ATTACK_TIME (0.06f)
rlm@0 662
rlm@0 663 #define AL_AUTOWAH_MIN_RELEASE_TIME (0.0001f)
rlm@0 664 #define AL_AUTOWAH_MAX_RELEASE_TIME (1.0f)
rlm@0 665 #define AL_AUTOWAH_DEFAULT_RELEASE_TIME (0.06f)
rlm@0 666
rlm@0 667 #define AL_AUTOWAH_MIN_RESONANCE (2.0f)
rlm@0 668 #define AL_AUTOWAH_MAX_RESONANCE (1000.0f)
rlm@0 669 #define AL_AUTOWAH_DEFAULT_RESONANCE (1000.0f)
rlm@0 670
rlm@0 671 #define AL_AUTOWAH_MIN_PEAK_GAIN (0.00003f)
rlm@0 672 #define AL_AUTOWAH_MAX_PEAK_GAIN (31621.0f)
rlm@0 673 #define AL_AUTOWAH_DEFAULT_PEAK_GAIN (11.22f)
rlm@0 674
rlm@0 675 /* Compressor effect */
rlm@0 676 #define AL_COMPRESSOR_MIN_ONOFF (0)
rlm@0 677 #define AL_COMPRESSOR_MAX_ONOFF (1)
rlm@0 678 #define AL_COMPRESSOR_DEFAULT_ONOFF (1)
rlm@0 679
rlm@0 680 /* Equalizer effect */
rlm@0 681 #define AL_EQUALIZER_MIN_LOW_GAIN (0.126f)
rlm@0 682 #define AL_EQUALIZER_MAX_LOW_GAIN (7.943f)
rlm@0 683 #define AL_EQUALIZER_DEFAULT_LOW_GAIN (1.0f)
rlm@0 684
rlm@0 685 #define AL_EQUALIZER_MIN_LOW_CUTOFF (50.0f)
rlm@0 686 #define AL_EQUALIZER_MAX_LOW_CUTOFF (800.0f)
rlm@0 687 #define AL_EQUALIZER_DEFAULT_LOW_CUTOFF (200.0f)
rlm@0 688
rlm@0 689 #define AL_EQUALIZER_MIN_MID1_GAIN (0.126f)
rlm@0 690 #define AL_EQUALIZER_MAX_MID1_GAIN (7.943f)
rlm@0 691 #define AL_EQUALIZER_DEFAULT_MID1_GAIN (1.0f)
rlm@0 692
rlm@0 693 #define AL_EQUALIZER_MIN_MID1_CENTER (200.0f)
rlm@0 694 #define AL_EQUALIZER_MAX_MID1_CENTER (3000.0f)
rlm@0 695 #define AL_EQUALIZER_DEFAULT_MID1_CENTER (500.0f)
rlm@0 696
rlm@0 697 #define AL_EQUALIZER_MIN_MID1_WIDTH (0.01f)
rlm@0 698 #define AL_EQUALIZER_MAX_MID1_WIDTH (1.0f)
rlm@0 699 #define AL_EQUALIZER_DEFAULT_MID1_WIDTH (1.0f)
rlm@0 700
rlm@0 701 #define AL_EQUALIZER_MIN_MID2_GAIN (0.126f)
rlm@0 702 #define AL_EQUALIZER_MAX_MID2_GAIN (7.943f)
rlm@0 703 #define AL_EQUALIZER_DEFAULT_MID2_GAIN (1.0f)
rlm@0 704
rlm@0 705 #define AL_EQUALIZER_MIN_MID2_CENTER (1000.0f)
rlm@0 706 #define AL_EQUALIZER_MAX_MID2_CENTER (8000.0f)
rlm@0 707 #define AL_EQUALIZER_DEFAULT_MID2_CENTER (3000.0f)
rlm@0 708
rlm@0 709 #define AL_EQUALIZER_MIN_MID2_WIDTH (0.01f)
rlm@0 710 #define AL_EQUALIZER_MAX_MID2_WIDTH (1.0f)
rlm@0 711 #define AL_EQUALIZER_DEFAULT_MID2_WIDTH (1.0f)
rlm@0 712
rlm@0 713 #define AL_EQUALIZER_MIN_HIGH_GAIN (0.126f)
rlm@0 714 #define AL_EQUALIZER_MAX_HIGH_GAIN (7.943f)
rlm@0 715 #define AL_EQUALIZER_DEFAULT_HIGH_GAIN (1.0f)
rlm@0 716
rlm@0 717 #define AL_EQUALIZER_MIN_HIGH_CUTOFF (4000.0f)
rlm@0 718 #define AL_EQUALIZER_MAX_HIGH_CUTOFF (16000.0f)
rlm@0 719 #define AL_EQUALIZER_DEFAULT_HIGH_CUTOFF (6000.0f)
rlm@0 720
rlm@0 721
rlm@0 722 /* Source parameter value ranges and defaults. */
rlm@0 723 #define AL_MIN_AIR_ABSORPTION_FACTOR (0.0f)
rlm@0 724 #define AL_MAX_AIR_ABSORPTION_FACTOR (10.0f)
rlm@0 725 #define AL_DEFAULT_AIR_ABSORPTION_FACTOR (0.0f)
rlm@0 726
rlm@0 727 #define AL_MIN_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 728 #define AL_MAX_ROOM_ROLLOFF_FACTOR (10.0f)
rlm@0 729 #define AL_DEFAULT_ROOM_ROLLOFF_FACTOR (0.0f)
rlm@0 730
rlm@0 731 #define AL_MIN_CONE_OUTER_GAINHF (0.0f)
rlm@0 732 #define AL_MAX_CONE_OUTER_GAINHF (1.0f)
rlm@0 733 #define AL_DEFAULT_CONE_OUTER_GAINHF (1.0f)
rlm@0 734
rlm@0 735 #define AL_MIN_DIRECT_FILTER_GAINHF_AUTO AL_FALSE
rlm@0 736 #define AL_MAX_DIRECT_FILTER_GAINHF_AUTO AL_TRUE
rlm@0 737 #define AL_DEFAULT_DIRECT_FILTER_GAINHF_AUTO AL_TRUE
rlm@0 738
rlm@0 739 #define AL_MIN_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_FALSE
rlm@0 740 #define AL_MAX_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_TRUE
rlm@0 741 #define AL_DEFAULT_AUXILIARY_SEND_FILTER_GAIN_AUTO AL_TRUE
rlm@0 742
rlm@0 743 #define AL_MIN_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_FALSE
rlm@0 744 #define AL_MAX_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_TRUE
rlm@0 745 #define AL_DEFAULT_AUXILIARY_SEND_FILTER_GAINHF_AUTO AL_TRUE
rlm@0 746
rlm@0 747
rlm@0 748 /* Listener parameter value ranges and defaults. */
rlm@0 749 #define AL_MIN_METERS_PER_UNIT FLT_MIN
rlm@0 750 #define AL_MAX_METERS_PER_UNIT FLT_MAX
rlm@0 751 #define AL_DEFAULT_METERS_PER_UNIT (1.0f)
rlm@0 752
rlm@0 753
rlm@0 754 #ifdef __cplusplus
rlm@0 755 } /* extern "C" */
rlm@0 756 #endif
rlm@0 757
rlm@0 758 #endif /* AL_EFX_H */