diff options
author | Lopuska <[email protected]> | 2019-07-10 07:14:31 +0200 |
---|---|---|
committer | kcat <[email protected]> | 2019-07-09 22:14:31 -0700 |
commit | 4a33bbb14d6b5f7673fe0371004236bac8f5bb2a (patch) | |
tree | 1ece0323a5e5dee97600277003fcde6cb0e9f768 /OpenAL32 | |
parent | 3ffb6867a3bac856bacebf25dfbcf48b4482d50f (diff) |
vocal morpher implementation (#312)
* vocal morpher implementation
* compile fix for GCC
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alEffect.h | 3 | ||||
-rw-r--r-- | OpenAL32/alEffect.cpp | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenAL32/Include/alEffect.h b/OpenAL32/Include/alEffect.h index 51d6a24f..d94317a4 100644 --- a/OpenAL32/Include/alEffect.h +++ b/OpenAL32/Include/alEffect.h @@ -18,6 +18,7 @@ enum { FSHIFTER_EFFECT, MODULATOR_EFFECT, PSHIFTER_EFFECT, + VMORPHER_EFFECT, DEDICATED_EFFECT, MAX_EFFECTS @@ -31,7 +32,7 @@ struct EffectList { int type; ALenum val; }; -extern const EffectList gEffectList[14]; +extern const EffectList gEffectList[15]; struct ALeffect { diff --git a/OpenAL32/alEffect.cpp b/OpenAL32/alEffect.cpp index a2a40ac5..0c4f9e72 100644 --- a/OpenAL32/alEffect.cpp +++ b/OpenAL32/alEffect.cpp @@ -38,7 +38,7 @@ #include "effects/base.h" -const EffectList gEffectList[14]{ +const EffectList gEffectList[15]{ { "eaxreverb", EAXREVERB_EFFECT, AL_EFFECT_EAXREVERB }, { "reverb", REVERB_EFFECT, AL_EFFECT_REVERB }, { "autowah", AUTOWAH_EFFECT, AL_EFFECT_AUTOWAH }, @@ -51,6 +51,7 @@ const EffectList gEffectList[14]{ { "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 }, }; @@ -76,6 +77,7 @@ constexpr struct FactoryItem { { AL_EFFECT_FREQUENCY_SHIFTER, FshifterStateFactory_getFactory }, { AL_EFFECT_RING_MODULATOR, ModulatorStateFactory_getFactory }, { AL_EFFECT_PITCH_SHIFTER, PshifterStateFactory_getFactory}, + { AL_EFFECT_VOCAL_MORPHER, VmorpherStateFactory_getFactory}, { AL_EFFECT_DEDICATED_DIALOGUE, DedicatedStateFactory_getFactory }, { AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT, DedicatedStateFactory_getFactory } }; |