diff options
author | Chris Robinson <[email protected]> | 2009-04-12 16:01:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-04-12 16:01:10 -0700 |
commit | 55c790c9ff28acad5e5da365bee8a6f693d21796 (patch) | |
tree | 09d387064dc5beece6a9d8cfeb3b034c7f5ea0d3 /OpenAL32/Include/alEffect.h | |
parent | 65b69f33085ac9381f683e92655acba0e4622675 (diff) |
Add the Echo effect
Diffstat (limited to 'OpenAL32/Include/alEffect.h')
-rw-r--r-- | OpenAL32/Include/alEffect.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h index 5f6723bc..6dd1b766 100644 --- a/OpenAL32/Include/alEffect.h +++ b/OpenAL32/Include/alEffect.h @@ -37,9 +37,33 @@ extern "C" { #define AL_REVERB_ROOM_ROLLOFF_FACTOR 0x000C #define AL_REVERB_DECAY_HFLIMIT 0x000D +#define AL_ECHO_DELAY 0x0001 +#define AL_ECHO_LRDELAY 0x0002 +#define AL_ECHO_DAMPING 0x0003 +#define AL_ECHO_FEEDBACK 0x0004 +#define AL_ECHO_SPREAD 0x0005 + +#define AL_ECHO_MIN_DELAY (0.0f) +#define AL_ECHO_MAX_DELAY (0.207f) +#define AL_ECHO_DEFAULT_DELAY (0.1f) +#define AL_ECHO_MIN_LRDELAY (0.0f) +#define AL_ECHO_MAX_LRDELAY (0.404f) +#define AL_ECHO_DEFAULT_LRDELAY (0.1f) +#define AL_ECHO_MIN_DAMPING (0.0f) +#define AL_ECHO_MAX_DAMPING (0.99f) +#define AL_ECHO_DEFAULT_DAMPING (0.5f) +#define AL_ECHO_MIN_FEEDBACK (0.0f) +#define AL_ECHO_MAX_FEEDBACK (1.0f) +#define AL_ECHO_DEFAULT_FEEDBACK (0.5f) +#define AL_ECHO_MIN_SPREAD (-1.0f) +#define AL_ECHO_MAX_SPREAD (1.0f) +#define AL_ECHO_DEFAULT_SPREAD (-1.0f) + enum { REVERB = 0, + ECHO, + MAX_EFFECTS }; extern ALboolean DisabledEffects[MAX_EFFECTS]; @@ -67,6 +91,16 @@ typedef struct ALeffect_struct ALboolean DecayHFLimit; } Reverb; + struct { + ALfloat Delay; + ALfloat LRDelay; + + ALfloat Damping; + ALfloat Feedback; + + ALfloat Spread; + } Echo; + // Index to itself ALuint effect; |