aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-17 17:52:03 -0800
committerChris Robinson <[email protected]>2007-12-17 17:52:03 -0800
commit670487b4dde9ebbf708b0b8ee112f3c482c865bb (patch)
tree5f456517e90da8bcd1d1d2853cac97e2c6397a3d /OpenAL32
parent0ac746df570551824bd3e5e6cf70b2e276436f8c (diff)
Add effect type enums
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alEffect.h12
-rw-r--r--OpenAL32/alExtension.c19
2 files changed, 30 insertions, 1 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h
index e03c523f..d42f5adc 100644
--- a/OpenAL32/Include/alEffect.h
+++ b/OpenAL32/Include/alEffect.h
@@ -10,6 +10,18 @@ extern "C" {
#define AL_EFFECT_TYPE 0x8001
#define AL_EFFECT_NULL 0x0000
+#define AL_EFFECT_REVERB 0x0001
+#define AL_EFFECT_CHORUS 0x0002
+#define AL_EFFECT_DISTORTION 0x0003
+#define AL_EFFECT_ECHO 0x0004
+#define AL_EFFECT_FLANGER 0x0005
+#define AL_EFFECT_FREQUENCY_SHIFTER 0x0006
+#define AL_EFFECT_VOCAL_MORPHER 0x0007
+#define AL_EFFECT_PITCH_SHIFTER 0x0008
+#define AL_EFFECT_RING_MODULATOR 0x0009
+#define AL_EFFECT_AUTOWAH 0x000A
+#define AL_EFFECT_COMPRESSOR 0x000B
+#define AL_EFFECT_EQUALIZER 0x000C
typedef struct ALeffect_struct
{
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c
index 135d93b8..1d1c0bf3 100644
--- a/OpenAL32/alExtension.c
+++ b/OpenAL32/alExtension.c
@@ -254,8 +254,25 @@ static ALenums enumeration[]={
{ (ALchar *)"AL_FILTER_HIGHPASS", AL_FILTER_HIGHPASS },
{ (ALchar *)"AL_FILTER_BANDPASS", AL_FILTER_BANDPASS },
+ // Effect types
+ { (ALchar *)"AL_EFFECT_TYPE", AL_EFFECT_TYPE },
+ { (ALchar *)"AL_EFFECT_NULL", AL_EFFECT_NULL },
+ { (ALchar *)"AL_EFFECT_REVERB", AL_EFFECT_REVERB },
+ { (ALchar *)"AL_EFFECT_CHORUS", AL_EFFECT_CHORUS },
+ { (ALchar *)"AL_EFFECT_DISTORTION", AL_EFFECT_DISTORTION },
+ { (ALchar *)"AL_EFFECT_ECHO", AL_EFFECT_ECHO },
+ { (ALchar *)"AL_EFFECT_FLANGER", AL_EFFECT_FLANGER },
+ { (ALchar *)"AL_EFFECT_FREQUENCY_SHIFTER", AL_EFFECT_FREQUENCY_SHIFTER },
+ { (ALchar *)"AL_EFFECT_VOCAL_MORPHER", AL_EFFECT_VOCAL_MORPHER },
+ { (ALchar *)"AL_EFFECT_PITCH_SHIFTER", AL_EFFECT_PITCH_SHIFTER },
+ { (ALchar *)"AL_EFFECT_RING_MODULATOR", AL_EFFECT_RING_MODULATOR },
+ { (ALchar *)"AL_EFFECT_AUTOWAH", AL_EFFECT_AUTOWAH },
+ { (ALchar *)"AL_EFFECT_COMPRESSOR", AL_EFFECT_COMPRESSOR },
+ { (ALchar *)"AL_EFFECT_EQUALIZER", AL_EFFECT_EQUALIZER },
+
// Default
- { (ALchar *)NULL, (ALenum ) 0 } };
+ { (ALchar *)NULL, (ALenum)0 }
+};