aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
Diffstat (limited to 'al')
-rw-r--r--al/effect.cpp33
-rw-r--r--al/effect.h3
2 files changed, 19 insertions, 17 deletions
diff --git a/al/effect.cpp b/al/effect.cpp
index c8d71190..fa39528b 100644
--- a/al/effect.cpp
+++ b/al/effect.cpp
@@ -50,22 +50,23 @@
#include "vector.h"
-const EffectList gEffectList[15]{
- { "eaxreverb", EAXREVERB_EFFECT, AL_EFFECT_EAXREVERB },
- { "reverb", REVERB_EFFECT, AL_EFFECT_REVERB },
- { "autowah", AUTOWAH_EFFECT, AL_EFFECT_AUTOWAH },
- { "chorus", CHORUS_EFFECT, AL_EFFECT_CHORUS },
- { "compressor", COMPRESSOR_EFFECT, AL_EFFECT_COMPRESSOR },
- { "distortion", DISTORTION_EFFECT, AL_EFFECT_DISTORTION },
- { "echo", ECHO_EFFECT, AL_EFFECT_ECHO },
- { "equalizer", EQUALIZER_EFFECT, AL_EFFECT_EQUALIZER },
- { "flanger", FLANGER_EFFECT, AL_EFFECT_FLANGER },
- { "fshifter", FSHIFTER_EFFECT, AL_EFFECT_FREQUENCY_SHIFTER },
- { "modulator", MODULATOR_EFFECT, AL_EFFECT_RING_MODULATOR },
- { "pshifter", PSHIFTER_EFFECT, AL_EFFECT_PITCH_SHIFTER },
- { "vmorpher", VMORPHER_EFFECT, AL_EFFECT_VOCAL_MORPHER },
- { "dedicated", DEDICATED_EFFECT, AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT },
- { "dedicated", DEDICATED_EFFECT, AL_EFFECT_DEDICATED_DIALOGUE },
+const EffectList gEffectList[16]{
+ { "eaxreverb", EAXREVERB_EFFECT, AL_EFFECT_EAXREVERB },
+ { "reverb", REVERB_EFFECT, AL_EFFECT_REVERB },
+ { "autowah", AUTOWAH_EFFECT, AL_EFFECT_AUTOWAH },
+ { "chorus", CHORUS_EFFECT, AL_EFFECT_CHORUS },
+ { "compressor", COMPRESSOR_EFFECT, AL_EFFECT_COMPRESSOR },
+ { "distortion", DISTORTION_EFFECT, AL_EFFECT_DISTORTION },
+ { "echo", ECHO_EFFECT, AL_EFFECT_ECHO },
+ { "equalizer", EQUALIZER_EFFECT, AL_EFFECT_EQUALIZER },
+ { "flanger", FLANGER_EFFECT, AL_EFFECT_FLANGER },
+ { "fshifter", FSHIFTER_EFFECT, AL_EFFECT_FREQUENCY_SHIFTER },
+ { "modulator", MODULATOR_EFFECT, AL_EFFECT_RING_MODULATOR },
+ { "pshifter", PSHIFTER_EFFECT, AL_EFFECT_PITCH_SHIFTER },
+ { "vmorpher", VMORPHER_EFFECT, AL_EFFECT_VOCAL_MORPHER },
+ { "dedicated", DEDICATED_EFFECT, AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT },
+ { "dedicated", DEDICATED_EFFECT, AL_EFFECT_DEDICATED_DIALOGUE },
+ { "convolution", CONVOLUTION_EFFECT, AL_EFFECT_CONVOLUTION_REVERB_SOFT },
};
bool DisabledEffects[MAX_EFFECTS];
diff --git a/al/effect.h b/al/effect.h
index 76215f40..28ce1f3e 100644
--- a/al/effect.h
+++ b/al/effect.h
@@ -22,6 +22,7 @@ enum {
PSHIFTER_EFFECT,
VMORPHER_EFFECT,
DEDICATED_EFFECT,
+ CONVOLUTION_EFFECT,
MAX_EFFECTS
};
@@ -34,7 +35,7 @@ struct EffectList {
int type;
ALenum val;
};
-extern const EffectList gEffectList[15];
+extern const EffectList gEffectList[16];
struct ALeffect {