aboutsummaryrefslogtreecommitdiffstats
path: root/al/eax_utils.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-06 15:26:22 -0800
committerChris Robinson <[email protected]>2022-02-06 15:26:22 -0800
commit4f7799f1aecc3eadaaea8e770797124f85aac5e4 (patch)
tree7d4fc80f402006e00c331c031b459ccd3afde13b /al/eax_utils.h
parent4df658fe3bf2b8bcdfbfb42d59a42c5efce291af (diff)
Avoid the need for EaxAlContextWrapper
Diffstat (limited to 'al/eax_utils.h')
-rw-r--r--al/eax_utils.h34
1 files changed, 1 insertions, 33 deletions
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;