diff options
author | Chris Robinson <[email protected]> | 2023-03-10 19:58:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-10 19:58:45 -0800 |
commit | 8c3948c4de4b84805664775bbfe64516e1100ad9 (patch) | |
tree | c3325fe665867cf225d7aa1c8dde4b0b35c7576b /al/effects/effects.cpp | |
parent | 605fa7815948cdef42877286f85cc23ed5b3760d (diff) |
Rework EAX effect handling
Allocate a base EaxEffect object once for all effect types, instead of
reallocating different derived types on effect changes. The reverb and null
effects have been converted to the new interface, the others are currently
broken/unsupported, but will be restored shortly.
Diffstat (limited to 'al/effects/effects.cpp')
-rw-r--r-- | al/effects/effects.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/al/effects/effects.cpp b/al/effects/effects.cpp index 820f1517..4a67b5ff 100644 --- a/al/effects/effects.cpp +++ b/al/effects/effects.cpp @@ -6,57 +6,4 @@ #include "AL/efx.h" #include "effects.h" -EaxEffectUPtr eax_create_eax_effect(ALenum al_effect_type, int eax_version) -{ -#define EAX_PREFIX "[EAX_MAKE_EAX_EFFECT] " - - switch (al_effect_type) - { - case AL_EFFECT_NULL: - return eax_create_eax_null_effect(eax_version); - - case AL_EFFECT_CHORUS: - return eax_create_eax_chorus_effect(eax_version); - - case AL_EFFECT_DISTORTION: - return eax_create_eax_distortion_effect(eax_version); - - case AL_EFFECT_ECHO: - return eax_create_eax_echo_effect(eax_version); - - case AL_EFFECT_FLANGER: - return eax_create_eax_flanger_effect(eax_version); - - case AL_EFFECT_FREQUENCY_SHIFTER: - return eax_create_eax_frequency_shifter_effect(eax_version); - - case AL_EFFECT_VOCAL_MORPHER: - return eax_create_eax_vocal_morpher_effect(eax_version); - - case AL_EFFECT_PITCH_SHIFTER: - return eax_create_eax_pitch_shifter_effect(eax_version); - - case AL_EFFECT_RING_MODULATOR: - return eax_create_eax_ring_modulator_effect(eax_version); - - case AL_EFFECT_AUTOWAH: - return eax_create_eax_auto_wah_effect(eax_version); - - case AL_EFFECT_COMPRESSOR: - return eax_create_eax_compressor_effect(eax_version); - - case AL_EFFECT_EQUALIZER: - return eax_create_eax_equalizer_effect(eax_version); - - case AL_EFFECT_EAXREVERB: - return eax_create_eax_reverb_effect(eax_version); - - default: - assert(false && "Unsupported AL effect type."); - return nullptr; - } - -#undef EAX_PREFIX -} - #endif // ALSOFT_EAX |