diff options
author | Chris Robinson <[email protected]> | 2013-03-13 23:31:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-03-13 23:31:12 -0700 |
commit | 3fd0f23e48fc71718f438e035ffb09d4ba9a47a3 (patch) | |
tree | dc33a1a36aa51489f513cb68c1ed4c07b7334d47 /OpenAL32/alAuxEffectSlot.c | |
parent | 991aba286f32e8760811bc061b15c5102c66b3e1 (diff) |
Add Chorus and Flanger effects
Code provided by Mike Gorchak
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c index 23cfa4ac..99e8daf1 100644 --- a/OpenAL32/alAuxEffectSlot.c +++ b/OpenAL32/alAuxEffectSlot.c @@ -537,6 +537,16 @@ ALenum InitializeEffect(ALCdevice *Device, ALeffectslot *EffectSlot, ALeffect *e if(!State) err = AL_OUT_OF_MEMORY; } } + else if(newtype == AL_EFFECT_CHORUS && EffectSlot->effect.type != AL_EFFECT_CHORUS) + { + State = ChorusCreate(); + if(!State) err = AL_OUT_OF_MEMORY; + } + else if(newtype == AL_EFFECT_FLANGER && EffectSlot->effect.type != AL_EFFECT_FLANGER) + { + State = FlangerCreate(); + if(!State) err = AL_OUT_OF_MEMORY; + } if(err != AL_NO_ERROR) { |