aboutsummaryrefslogtreecommitdiffstats
path: root/al/effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'al/effect.h')
-rw-r--r--al/effect.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/al/effect.h b/al/effect.h
index 270b8e20..a1d43313 100644
--- a/al/effect.h
+++ b/al/effect.h
@@ -4,7 +4,8 @@
#include "AL/al.h"
#include "AL/efx.h"
-#include "effects/base.h"
+#include "al/effects/effects.h"
+#include "alc/effects/base.h"
enum {
@@ -22,19 +23,20 @@ enum {
PSHIFTER_EFFECT,
VMORPHER_EFFECT,
DEDICATED_EFFECT,
+ CONVOLUTION_EFFECT,
MAX_EFFECTS
};
-extern ALboolean DisabledEffects[MAX_EFFECTS];
+extern bool DisabledEffects[MAX_EFFECTS];
-extern ALfloat ReverbBoost;
+extern float ReverbBoost;
struct EffectList {
const char name[16];
int type;
ALenum val;
};
-extern const EffectList gEffectList[15];
+extern const EffectList gEffectList[16];
struct ALeffect {
@@ -47,15 +49,14 @@ struct ALeffect {
/* Self ID */
ALuint id{0u};
-};
-
-inline ALboolean IsReverbEffect(ALenum type)
-{ return type == AL_EFFECT_REVERB || type == AL_EFFECT_EAXREVERB; }
-EffectStateFactory *getFactoryByType(ALenum type);
+ DISABLE_ALLOC()
+};
void InitEffect(ALeffect *effect);
void LoadReverbPreset(const char *name, ALeffect *effect);
+bool IsValidEffectType(ALenum type) noexcept;
+
#endif