diff options
author | Chris Robinson <[email protected]> | 2020-08-24 20:00:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-24 20:00:58 -0700 |
commit | b955479e18a11a5d9dce8fbd305dc915a2d6942c (patch) | |
tree | a8f9a00184f0db4492e9feb70c6cb39fb87a19a5 /al | |
parent | 9e5a388dfe2dbd5250f80675426c95a9bdade39c (diff) |
Recognize a convolution reverb effect type
Diffstat (limited to 'al')
-rw-r--r-- | al/effect.cpp | 33 | ||||
-rw-r--r-- | al/effect.h | 3 |
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 { |