diff options
author | Chris Robinson <[email protected]> | 2022-02-07 13:52:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-07 13:53:57 -0800 |
commit | f23c7fe8ba77d4d406d37c60501f961313db7d1a (patch) | |
tree | 569b57749d759f98bf114beac1893c1341dcf702 /al/filter.h | |
parent | 1807e083c8a4579979748d062e7b54a19c3b76b9 (diff) |
Avoid a proxy ALfilter object for EAX source properties
Diffstat (limited to 'al/filter.h')
-rw-r--r-- | al/filter.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/al/filter.h b/al/filter.h index 98c32325..65a9e30f 100644 --- a/al/filter.h +++ b/al/filter.h @@ -8,12 +8,6 @@ #include "almalloc.h" -#ifdef ALSOFT_EAX -#include <memory> - -#include "eax_utils.h" -#endif // ALSOFT_EAX - #define LOWPASSFREQREF 5000.0f #define HIGHPASSFREQREF 250.0f @@ -53,39 +47,6 @@ struct ALfilter { void getParamfv(ALenum param, float *values) const { vtab->getParamfv(this, param, values); } DISABLE_ALLOC() - -#ifdef ALSOFT_EAX -public: - void eax_set_low_pass_params( - ALCcontext& context, - const EaxAlLowPassParam& param); -#endif // ALSOFT_EAX }; -#ifdef ALSOFT_EAX -class EaxAlFilterDeleter { -public: - EaxAlFilterDeleter() noexcept = default; - - EaxAlFilterDeleter( - ALCcontext& context); - - - void operator()( - ALfilter* filter); - -private: - ALCcontext* context_{}; -}; // EaxAlFilterDeleter - -using EaxAlFilterUPtr = std::unique_ptr<ALfilter, EaxAlFilterDeleter>; - -EaxAlFilterUPtr eax_create_al_low_pass_filter( - ALCcontext& context); - -void eax_delete_low_pass_filter( - ALCcontext& context, - ALfilter& filter); -#endif // ALSOFT_EAX - #endif |