aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-01-30 05:42:44 -0800
committerChris Robinson <[email protected]>2022-01-30 05:42:44 -0800
commit816bd8ab309dc0fe9afefcc5e3f2c294d3dc60a5 (patch)
tree75cf4b9c90bb3aa8d461b6a7dc417329bd2175d3 /alc/context.h
parentc9d59ebc4a2c3566d34759a901be639b5f932e30 (diff)
Move ALSOFT_EAX definition to config.h
And disable it by default for non-Windows targets
Diffstat (limited to 'alc/context.h')
-rw-r--r--alc/context.h28
1 files changed, 13 insertions, 15 deletions
diff --git a/alc/context.h b/alc/context.h
index b34807b8..b964d813 100644
--- a/alc/context.h
+++ b/alc/context.h
@@ -19,17 +19,15 @@
#include "intrusive_ptr.h"
#include "vector.h"
-#if ALSOFT_EAX
+#ifdef ALSOFT_EAX
#include "al/filter.h"
#include "al/eax_eax_call.h"
#include "al/eax_fx_slot_index.h"
#include "al/eax_fx_slots.h"
#include "al/eax_utils.h"
-#endif // ALSOFT_EAX
-#if ALSOFT_EAX
using EaxContextSharedDirtyFlagsValue = std::uint_least8_t;
struct EaxContextSharedDirtyFlags
@@ -206,7 +204,7 @@ public:
DEF_NEWDEL(ALCcontext)
-#if ALSOFT_EAX
+#ifdef ALSOFT_EAX
public:
bool has_eax() const noexcept;
@@ -549,20 +547,20 @@ void UpdateContextProps(ALCcontext *context);
extern bool TrapALError;
-#if ALSOFT_EAX
+#ifdef ALSOFT_EAX
ALenum AL_APIENTRY EAXSet(
- const GUID* property_set_id,
- ALuint property_id,
- ALuint property_source_id,
- ALvoid* property_value,
- ALuint property_value_size) noexcept;
+ const GUID* property_set_id,
+ ALuint property_id,
+ ALuint property_source_id,
+ ALvoid* property_value,
+ ALuint property_value_size) noexcept;
ALenum AL_APIENTRY EAXGet(
- const GUID* property_set_id,
- ALuint property_id,
- ALuint property_source_id,
- ALvoid* property_value,
- ALuint property_value_size) noexcept;
+ const GUID* property_set_id,
+ ALuint property_id,
+ ALuint property_source_id,
+ ALvoid* property_value,
+ ALuint property_value_size) noexcept;
#endif // ALSOFT_EAX
#endif /* ALC_CONTEXT_H */