Make some local constexpr variables static
[openal-soft.git] / al / effects / effects.cpp
blobfaf322d2f577ca15af5d22d08e4d0a00ef492fce
2 #include "config.h"
4 #ifdef ALSOFT_EAX
6 #include "effects.h"
8 #include <cassert>
10 #include "AL/efx.h"
13 EaxEffectUPtr eax_create_eax_effect(ALenum al_effect_type)
15 #define EAX_PREFIX "[EAX_MAKE_EAX_EFFECT] "
17 switch (al_effect_type)
19 case AL_EFFECT_NULL:
20 return eax_create_eax_null_effect();
22 case AL_EFFECT_CHORUS:
23 return eax_create_eax_chorus_effect();
25 case AL_EFFECT_DISTORTION:
26 return eax_create_eax_distortion_effect();
28 case AL_EFFECT_ECHO:
29 return eax_create_eax_echo_effect();
31 case AL_EFFECT_FLANGER:
32 return eax_create_eax_flanger_effect();
34 case AL_EFFECT_FREQUENCY_SHIFTER:
35 return eax_create_eax_frequency_shifter_effect();
37 case AL_EFFECT_VOCAL_MORPHER:
38 return eax_create_eax_vocal_morpher_effect();
40 case AL_EFFECT_PITCH_SHIFTER:
41 return eax_create_eax_pitch_shifter_effect();
43 case AL_EFFECT_RING_MODULATOR:
44 return eax_create_eax_ring_modulator_effect();
46 case AL_EFFECT_AUTOWAH:
47 return eax_create_eax_auto_wah_effect();
49 case AL_EFFECT_COMPRESSOR:
50 return eax_create_eax_compressor_effect();
52 case AL_EFFECT_EQUALIZER:
53 return eax_create_eax_equalizer_effect();
55 case AL_EFFECT_EAXREVERB:
56 return eax_create_eax_reverb_effect();
58 default:
59 assert(false && "Unsupported AL effect type.");
60 return nullptr;
63 #undef EAX_PREFIX
66 #endif // ALSOFT_EAX