🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. #ifndef EAX_EFFECT_INCLUDED
  2. #define EAX_EFFECT_INCLUDED
  3. #include <memory>
  4. #include "AL/al.h"
  5. #include "core/effects/base.h"
  6. #include "eax_eax_call.h"
  7. class EaxEffect
  8. {
  9. public:
  10. EaxEffect(ALenum type) : al_effect_type_{type} { }
  11. virtual ~EaxEffect() = default;
  12. const ALenum al_effect_type_;
  13. EffectProps al_effect_props_{};
  14. virtual void dispatch(const EaxEaxCall& eax_call) = 0;
  15. // Returns "true" if any immediated property was changed.
  16. // [[nodiscard]]
  17. virtual bool apply_deferred() = 0;
  18. }; // EaxEffect
  19. using EaxEffectUPtr = std::unique_ptr<EaxEffect>;
  20. EaxEffectUPtr eax_create_eax_null_effect();
  21. EaxEffectUPtr eax_create_eax_chorus_effect();
  22. EaxEffectUPtr eax_create_eax_distortion_effect();
  23. EaxEffectUPtr eax_create_eax_echo_effect();
  24. EaxEffectUPtr eax_create_eax_flanger_effect();
  25. EaxEffectUPtr eax_create_eax_frequency_shifter_effect();
  26. EaxEffectUPtr eax_create_eax_vocal_morpher_effect();
  27. EaxEffectUPtr eax_create_eax_pitch_shifter_effect();
  28. EaxEffectUPtr eax_create_eax_ring_modulator_effect();
  29. EaxEffectUPtr eax_create_eax_auto_wah_effect();
  30. EaxEffectUPtr eax_create_eax_compressor_effect();
  31. EaxEffectUPtr eax_create_eax_equalizer_effect();
  32. EaxEffectUPtr eax_create_eax_reverb_effect();
  33. #endif // !EAX_EFFECT_INCLUDED