aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-06 22:24:20 -0800
committerChris Robinson <[email protected]>2018-12-06 22:24:20 -0800
commit0f24139b57460c71d66b9a090217d34706d64dde (patch)
tree29138a2a4d6ff0734f4c205983cc7d6711790c6e /OpenAL32/alSource.cpp
parent42d26472eb514a2fcb1eafbed93f56a697ebb3a0 (diff)
Use a constructor instead of a macro to initialize AsyncEvent
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 872bc9ee..f257da83 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -687,7 +687,7 @@ void SendStateChangeEvent(ALCcontext *context, ALuint id, ALenum state)
ALbitfieldSOFT enabledevt{context->EnabledEvts.load(std::memory_order_acquire)};
if(!(enabledevt&EventType_SourceStateChange)) return;
- AsyncEvent evt{ASYNC_EVENT(EventType_SourceStateChange)};
+ AsyncEvent evt{EventType_SourceStateChange};
evt.u.srcstate.id = id;
evt.u.srcstate.state = state;