diff options
author | Chris Robinson <[email protected]> | 2019-03-22 11:57:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-22 11:57:32 -0700 |
commit | 935f386982f9d0d94fdf569b0cb1aa43fbfadefa (patch) | |
tree | 59af81b3ede8b2755209908e23d38f4f8f1f9418 | |
parent | 979013512750f83954d786028f8a419408f490a1 (diff) |
Use a separate EffectStateFactory for standard reverb
-rw-r--r-- | Alc/effects/reverb.cpp | 3 | ||||
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 1 | ||||
-rw-r--r-- | OpenAL32/alAuxEffectSlot.cpp | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index 086ffed2..b963c2d5 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -1477,6 +1477,9 @@ EffectStateFactory *ReverbStateFactory_getFactory() return &ReverbFactory; } +EffectStateFactory *StdReverbStateFactory_getFactory() +{ return ReverbStateFactory_getFactory(); } + void ALeaxreverb_setParami(ALeffect *effect, ALCcontext *context, ALenum param, ALint val) { diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 23484f1f..387c6462 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -126,6 +126,7 @@ void UpdateAllEffectSlotProps(ALCcontext *context); EffectStateFactory *NullStateFactory_getFactory(void); EffectStateFactory *ReverbStateFactory_getFactory(void); +EffectStateFactory *StdReverbStateFactory_getFactory(void); EffectStateFactory *AutowahStateFactory_getFactory(void); EffectStateFactory *ChorusStateFactory_getFactory(void); EffectStateFactory *CompressorStateFactory_getFactory(void); diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index c681579c..771ed740 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -156,7 +156,7 @@ constexpr struct FactoryItem { } FactoryList[] = { { AL_EFFECT_NULL, NullStateFactory_getFactory }, { AL_EFFECT_EAXREVERB, ReverbStateFactory_getFactory }, - { AL_EFFECT_REVERB, ReverbStateFactory_getFactory }, + { AL_EFFECT_REVERB, StdReverbStateFactory_getFactory }, { AL_EFFECT_AUTOWAH, AutowahStateFactory_getFactory }, { AL_EFFECT_CHORUS, ChorusStateFactory_getFactory }, { AL_EFFECT_COMPRESSOR, CompressorStateFactory_getFactory }, |