aboutsummaryrefslogtreecommitdiffstats
path: root/al/eax/api.h
diff options
context:
space:
mode:
authorBoris I. Bendovsky <[email protected]>2022-06-18 23:36:42 +0300
committerGitHub <[email protected]>2022-06-18 13:36:42 -0700
commitd21ff67554d494ec53dcb4747b828478f8d5690a (patch)
tree5a8c39eeba176e4cfd539a9548af4bcc41557d5b /al/eax/api.h
parent0e7d5736c0b66d0639beb395b512416d252d28fb (diff)
[EAX] Add separate source state for each version (#720)
Diffstat (limited to 'al/eax/api.h')
-rw-r--r--al/eax/api.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/al/eax/api.h b/al/eax/api.h
index f4419ddb..a9b0a50f 100644
--- a/al/eax/api.h
+++ b/al/eax/api.h
@@ -275,6 +275,10 @@ struct EAX20BUFFERPROPERTIES
unsigned long dwFlags; // modifies the behavior of properties
}; // EAX20BUFFERPROPERTIES
+inline bool operator==(const EAX20BUFFERPROPERTIES& lhs, const EAX20BUFFERPROPERTIES& rhs) noexcept
+{
+ return std::memcmp(&lhs, &rhs, sizeof(EAX20BUFFERPROPERTIES)) == 0;
+}
extern const GUID DSPROPSETID_EAX30_ListenerProperties;
@@ -707,12 +711,21 @@ struct EAX30SOURCEPROPERTIES
unsigned long ulFlags; // modifies the behavior of properties
}; // EAX30SOURCEPROPERTIES
-struct EAX50SOURCEPROPERTIES :
- public EAX30SOURCEPROPERTIES
+inline bool operator==(const EAX30SOURCEPROPERTIES& lhs, const EAX30SOURCEPROPERTIES& rhs) noexcept
+{
+ return std::memcmp(&lhs, &rhs, sizeof(EAX30SOURCEPROPERTIES)) == 0;
+}
+
+struct EAX50SOURCEPROPERTIES : public EAX30SOURCEPROPERTIES
{
float flMacroFXFactor;
}; // EAX50SOURCEPROPERTIES
+inline bool operator==(const EAX50SOURCEPROPERTIES& lhs, const EAX50SOURCEPROPERTIES& rhs) noexcept
+{
+ return std::memcmp(&lhs, &rhs, sizeof(EAX50SOURCEPROPERTIES)) == 0;
+}
+
struct EAXSOURCEALLSENDPROPERTIES
{
GUID guidReceivingFXSlotID;
@@ -808,7 +821,7 @@ struct EAXSOURCEEXCLUSIONSENDPROPERTIES
float flExclusionLFRatio;
}; // EAXSOURCEEXCLUSIONSENDPROPERTIES
-extern const EAX50ACTIVEFXSLOTS EAX40SOURCE_DEFAULTACTIVEFXSLOTID;
+extern const EAX40ACTIVEFXSLOTS EAX40SOURCE_DEFAULTACTIVEFXSLOTID;
extern const EAX50ACTIVEFXSLOTS EAX50SOURCE_3DDEFAULTACTIVEFXSLOTID;