mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
keeping the alt 87514151c4 (diff-73a8dc1ce58605f6c5ea53548454c3bae516ec5132a29c9d7ff7edf9730c75be)
64 lines
3.2 KiB
C++
64 lines
3.2 KiB
C++
#ifndef AL_EFFECTS_EFFECTS_H
|
|
#define AL_EFFECTS_EFFECTS_H
|
|
|
|
#include <variant>
|
|
|
|
#include "AL/alc.h"
|
|
#include "AL/al.h"
|
|
|
|
#include "core/effects/base.h"
|
|
#include "opthelpers.h"
|
|
|
|
#define DECL_HANDLER(N, T) \
|
|
struct N { \
|
|
using prop_type = T; \
|
|
\
|
|
static void SetParami(ALCcontext *context, prop_type &props, ALenum param, int val); \
|
|
static void SetParamiv(ALCcontext *context, prop_type &props, ALenum param, const int *vals); \
|
|
static void SetParamf(ALCcontext *context, prop_type &props, ALenum param, float val); \
|
|
static void SetParamfv(ALCcontext *context, prop_type &props, ALenum param, const float *vals);\
|
|
static void GetParami(ALCcontext *context, const prop_type &props, ALenum param, int *val); \
|
|
static void GetParamiv(ALCcontext *context, const prop_type &props, ALenum param, int *vals); \
|
|
static void GetParamf(ALCcontext *context, const prop_type &props, ALenum param, float *val); \
|
|
static void GetParamfv(ALCcontext *context, const prop_type &props, ALenum param, float *vals);\
|
|
};
|
|
DECL_HANDLER(NullEffectHandler, std::monostate)
|
|
DECL_HANDLER(ReverbEffectHandler, ReverbProps)
|
|
DECL_HANDLER(StdReverbEffectHandler, ReverbProps)
|
|
DECL_HANDLER(AutowahEffectHandler, AutowahProps)
|
|
DECL_HANDLER(ChorusEffectHandler, ChorusProps)
|
|
DECL_HANDLER(CompressorEffectHandler, CompressorProps)
|
|
DECL_HANDLER(DistortionEffectHandler, DistortionProps)
|
|
DECL_HANDLER(EchoEffectHandler, EchoProps)
|
|
DECL_HANDLER(EqualizerEffectHandler, EqualizerProps)
|
|
DECL_HANDLER(FlangerEffectHandler, ChorusProps)
|
|
DECL_HANDLER(FshifterEffectHandler, FshifterProps)
|
|
DECL_HANDLER(ModulatorEffectHandler, ModulatorProps)
|
|
DECL_HANDLER(PshifterEffectHandler, PshifterProps)
|
|
DECL_HANDLER(VmorpherEffectHandler, VmorpherProps)
|
|
DECL_HANDLER(DedicatedDialogEffectHandler, DedicatedProps)
|
|
DECL_HANDLER(DedicatedLfeEffectHandler, DedicatedProps)
|
|
DECL_HANDLER(ConvolutionEffectHandler, ConvolutionProps)
|
|
#undef DECL_HANDLER
|
|
|
|
|
|
/* Default properties for the given effect types. */
|
|
DECL_HIDDEN extern const EffectProps NullEffectProps;
|
|
DECL_HIDDEN extern const EffectProps ReverbEffectProps;
|
|
DECL_HIDDEN extern const EffectProps StdReverbEffectProps;
|
|
DECL_HIDDEN extern const EffectProps AutowahEffectProps;
|
|
DECL_HIDDEN extern const EffectProps ChorusEffectProps;
|
|
DECL_HIDDEN extern const EffectProps CompressorEffectProps;
|
|
DECL_HIDDEN extern const EffectProps DistortionEffectProps;
|
|
DECL_HIDDEN extern const EffectProps EchoEffectProps;
|
|
DECL_HIDDEN extern const EffectProps EqualizerEffectProps;
|
|
DECL_HIDDEN extern const EffectProps FlangerEffectProps;
|
|
DECL_HIDDEN extern const EffectProps FshifterEffectProps;
|
|
DECL_HIDDEN extern const EffectProps ModulatorEffectProps;
|
|
DECL_HIDDEN extern const EffectProps PshifterEffectProps;
|
|
DECL_HIDDEN extern const EffectProps VmorpherEffectProps;
|
|
DECL_HIDDEN extern const EffectProps DedicatedDialogEffectProps;
|
|
DECL_HIDDEN extern const EffectProps DedicatedLfeEffectProps;
|
|
DECL_HIDDEN extern const EffectProps ConvolutionEffectProps;
|
|
|
|
#endif /* AL_EFFECTS_EFFECTS_H */
|