diff options
author | Chris Robinson <[email protected]> | 2023-03-11 14:19:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-03-11 14:19:00 -0800 |
commit | 0bda22af1065e3cc251346d720f6f61c7dca17bd (patch) | |
tree | b56b87c7c51267e96c16cdd575e953e205ca5967 /al/eax/effect.h | |
parent | 1e226fd54dc6670222ce1210cf55fe1b4d61e89c (diff) |
Convert the EAX Frequency Shifter effect
Diffstat (limited to 'al/eax/effect.h')
-rw-r--r-- | al/eax/effect.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/al/eax/effect.h b/al/eax/effect.h index 69380986..6e5a0553 100644 --- a/al/eax/effect.h +++ b/al/eax/effect.h @@ -186,6 +186,9 @@ struct EaxEqualizerCommitter : public EaxCommitter<EaxEqualizerCommitter> { struct EaxFlangerCommitter : public EaxCommitter<EaxFlangerCommitter> { using EaxCommitter<EaxFlangerCommitter>::EaxCommitter; }; +struct EaxFrequencyShifterCommitter : public EaxCommitter<EaxFrequencyShifterCommitter> { + using EaxCommitter<EaxFrequencyShifterCommitter>::EaxCommitter; +}; struct EaxNullCommitter : public EaxCommitter<EaxNullCommitter> { using EaxCommitter<EaxNullCommitter>::EaxCommitter; }; @@ -260,6 +263,8 @@ public: return call_set_defaults<EaxEqualizerCommitter>(props); if(altype == AL_EFFECT_FLANGER) return call_set_defaults<EaxFlangerCommitter>(props); + if(altype == AL_EFFECT_FREQUENCY_SHIFTER) + return call_set_defaults<EaxFrequencyShifterCommitter>(props); return call_set_defaults<EaxNullCommitter>(props); } @@ -309,6 +314,8 @@ public: return Callable<EaxEqualizerCommitter>(__VA_ARGS__); \ if(T == EaxEffectType::Flanger) \ return Callable<EaxFlangerCommitter>(__VA_ARGS__); \ + if(T == EaxEffectType::FrequencyShifter) \ + return Callable<EaxFrequencyShifterCommitter>(__VA_ARGS__); \ return Callable<EaxNullCommitter>(__VA_ARGS__) template<typename T, typename ...Args> |