aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.cpp2
-rw-r--r--OpenAL32/event.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 539a5f4f..39f70ab5 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -249,7 +249,7 @@ static void SendStateChangeEvent(ALCcontext *context, ALuint id, ALenum state)
* and we don't want state change messages to occur out of order, so send
* it through the async queue to ensure proper ordering.
*/
- if(ll_ringbuffer_write(context->AsyncEvents, (const char*)&evt, 1) == 1)
+ if(ll_ringbuffer_write(context->AsyncEvents, &evt, 1) == 1)
alsem_post(&context->EventSem);
}
diff --git a/OpenAL32/event.cpp b/OpenAL32/event.cpp
index fcbcba66..1dc2745f 100644
--- a/OpenAL32/event.cpp
+++ b/OpenAL32/event.cpp
@@ -21,7 +21,7 @@ static int EventThread(ALCcontext *context)
while(LIKELY(!quitnow))
{
AsyncEvent evt;
- if(ll_ringbuffer_read(context->AsyncEvents, (char*)&evt, 1) == 0)
+ if(ll_ringbuffer_read(context->AsyncEvents, &evt, 1) == 0)
{
alsem_wait(&context->EventSem);
continue;
@@ -43,7 +43,7 @@ static int EventThread(ALCcontext *context)
context->EventCb(evt.u.user.type, evt.u.user.id, evt.u.user.param,
(ALsizei)strlen(evt.u.user.msg), evt.u.user.msg, context->EventParam
);
- } while(ll_ringbuffer_read(context->AsyncEvents, (char*)&evt, 1) != 0);
+ } while(ll_ringbuffer_read(context->AsyncEvents, &evt, 1) != 0);
}
return 0;
}
@@ -64,7 +64,7 @@ void StartEventThrd(ALCcontext *ctx)
void StopEventThrd(ALCcontext *ctx)
{
static constexpr AsyncEvent kill_evt = ASYNC_EVENT(EventType_KillThread);
- while(ll_ringbuffer_write(ctx->AsyncEvents, (const char*)&kill_evt, 1) == 0)
+ while(ll_ringbuffer_write(ctx->AsyncEvents, &kill_evt, 1) == 0)
althrd_yield();
alsem_post(&ctx->EventSem);
if(ctx->EventThread.joinable())