aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-16 18:37:55 -0800
committerChris Robinson <[email protected]>2018-11-16 18:37:55 -0800
commita15a678da689681251312f19a30bc49e781e2c1d (patch)
tree38dc443f15bb35136f5de3077fabff779daf1086 /OpenAL32
parent0e0fe15b989c8289748c50704c4b10036c1f79dd (diff)
Convert alListener.c to C++
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alListener.cpp (renamed from OpenAL32/alListener.c)5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenAL32/alListener.c b/OpenAL32/alListener.cpp
index 700fa0af..809b0318 100644
--- a/OpenAL32/alListener.c
+++ b/OpenAL32/alListener.cpp
@@ -462,7 +462,7 @@ void UpdateListenerProps(ALCcontext *context)
/* Get an unused proprty container, or allocate a new one as needed. */
props = ATOMIC_LOAD(&context->FreeListenerProps, almemory_order_acquire);
if(!props)
- props = al_calloc(16, sizeof(*props));
+ props = static_cast<ALlistenerProps*>(al_calloc(16, sizeof(*props)));
else
{
struct ALlistenerProps *next;
@@ -491,7 +491,8 @@ void UpdateListenerProps(ALCcontext *context)
props->Gain = listener->Gain;
/* Set the new container for updating internal parameters. */
- props = ATOMIC_EXCHANGE_PTR(&listener->Update, props, almemory_order_acq_rel);
+ props = static_cast<ALlistenerProps*>(ATOMIC_EXCHANGE_PTR(&listener->Update, props,
+ almemory_order_acq_rel));
if(props)
{
/* If there was an unused update container, put it back in the