aboutsummaryrefslogtreecommitdiffstats
path: root/al/eax
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-03-11 00:47:22 -0800
committerChris Robinson <[email protected]>2023-03-11 00:47:22 -0800
commit64ead7d36de7dc748414530121b69876a0c84e05 (patch)
tree91fcacc64d03b0db131b961a8d4d2d457f36343b /al/eax
parent1d112eee0fb5bfe358dc9a7627a64679292a3df5 (diff)
Convert the EAX Echo and Equalizer effects
Diffstat (limited to 'al/eax')
-rw-r--r--al/eax/effect.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/al/eax/effect.h b/al/eax/effect.h
index bf03fea3..69380986 100644
--- a/al/eax/effect.h
+++ b/al/eax/effect.h
@@ -177,6 +177,12 @@ struct EaxCompressorCommitter : public EaxCommitter<EaxCompressorCommitter> {
struct EaxDistortionCommitter : public EaxCommitter<EaxDistortionCommitter> {
using EaxCommitter<EaxDistortionCommitter>::EaxCommitter;
};
+struct EaxEchoCommitter : public EaxCommitter<EaxEchoCommitter> {
+ using EaxCommitter<EaxEchoCommitter>::EaxCommitter;
+};
+struct EaxEqualizerCommitter : public EaxCommitter<EaxEqualizerCommitter> {
+ using EaxCommitter<EaxEqualizerCommitter>::EaxCommitter;
+};
struct EaxFlangerCommitter : public EaxCommitter<EaxFlangerCommitter> {
using EaxCommitter<EaxFlangerCommitter>::EaxCommitter;
};
@@ -248,6 +254,10 @@ public:
return call_set_defaults<EaxCompressorCommitter>(props);
if(altype == AL_EFFECT_DISTORTION)
return call_set_defaults<EaxDistortionCommitter>(props);
+ if(altype == AL_EFFECT_ECHO)
+ return call_set_defaults<EaxEchoCommitter>(props);
+ if(altype == AL_EFFECT_EQUALIZER)
+ return call_set_defaults<EaxEqualizerCommitter>(props);
if(altype == AL_EFFECT_FLANGER)
return call_set_defaults<EaxFlangerCommitter>(props);
return call_set_defaults<EaxNullCommitter>(props);
@@ -293,6 +303,10 @@ public:
return Callable<EaxCompressorCommitter>(__VA_ARGS__); \
if(T == EaxEffectType::Distortion) \
return Callable<EaxDistortionCommitter>(__VA_ARGS__); \
+ if(T == EaxEffectType::Echo) \
+ return Callable<EaxEchoCommitter>(__VA_ARGS__); \
+ if(T == EaxEffectType::Equalizer) \
+ return Callable<EaxEqualizerCommitter>(__VA_ARGS__); \
if(T == EaxEffectType::Flanger) \
return Callable<EaxFlangerCommitter>(__VA_ARGS__); \
return Callable<EaxNullCommitter>(__VA_ARGS__)