From 4f7799f1aecc3eadaaea8e770797124f85aac5e4 Mon Sep 17 00:00:00 2001 From: Chris Robinson <chris.kcat@gmail.com> Date: Sun, 6 Feb 2022 15:26:22 -0800 Subject: Avoid the need for EaxAlContextWrapper --- al/eax_utils.h | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'al/eax_utils.h') diff --git a/al/eax_utils.h b/al/eax_utils.h index 68e35fcd..d3d4a196 100644 --- a/al/eax_utils.h +++ b/al/eax_utils.h @@ -1,17 +1,12 @@ #ifndef EAX_UTILS_INCLUDED #define EAX_UTILS_INCLUDED - -#include <cstdint> - #include <algorithm> +#include <cstdint> #include <string> #include <type_traits> -struct ALCcontext; - - struct EaxAlLowPassParam { float gain; @@ -19,33 +14,6 @@ struct EaxAlLowPassParam }; // EaxAlLowPassParam -// Required to call macro `DO_UPDATEPROPS`. -class EaxAlContextWrapper -{ -public: - explicit EaxAlContextWrapper( - ALCcontext& al_context) noexcept - : - al_context_{&al_context} - { - } - - constexpr ALCcontext* get() noexcept - { - return al_context_; - } - - constexpr ALCcontext* operator->() noexcept - { - return al_context_; - } - - -private: - ALCcontext* al_context_; -}; // EaxAlContextWrapper - - void eax_log_exception( const char* message = nullptr) noexcept; -- cgit v1.2.3