diff options
author | Chris Robinson <[email protected]> | 2018-03-01 21:23:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-01 21:23:13 -0800 |
commit | 6f62fed65c4dcdf999a612e258cca59a22355f3c (patch) | |
tree | bd8d8f9e84beb94761ae35da41c3e66465af62a8 /OpenAL32/event.c | |
parent | cba37819d1e68ff6473d0e10b42ac9465943d5cb (diff) |
Add an option to limit the write size of the ringbuffer
Diffstat (limited to 'OpenAL32/event.c')
-rw-r--r-- | OpenAL32/event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/event.c b/OpenAL32/event.c index ef36f977..333b7613 100644 --- a/OpenAL32/event.c +++ b/OpenAL32/event.c @@ -78,7 +78,7 @@ AL_API void AL_APIENTRY alEventControlSOFT(ALsizei count, const ALenum *types, A bool isrunning; almtx_lock(&context->EventThrdLock); if(!context->AsyncEvents) - context->AsyncEvents = ll_ringbuffer_create(64, sizeof(AsyncEvent)); + context->AsyncEvents = ll_ringbuffer_create(63, sizeof(AsyncEvent), false); enabledevts = ATOMIC_LOAD(&context->EnabledEvts, almemory_order_relaxed); isrunning = !!enabledevts; while(ATOMIC_COMPARE_EXCHANGE_WEAK(&context->EnabledEvts, &enabledevts, enabledevts|flags, |