diff options
Diffstat (limited to 'Alc/mixvoice.cpp')
-rw-r--r-- | Alc/mixvoice.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index b94f26be..48844219 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -736,13 +736,14 @@ ALboolean MixSource(ALvoice *voice, const ALuint SourceID, ALCcontext *Context, ALbitfieldSOFT enabledevt{Context->EnabledEvts.load(std::memory_order_acquire)}; if(buffers_done > 0 && (enabledevt&EventType_BufferCompleted)) { - auto evt_data = ll_ringbuffer_get_write_vector(Context->AsyncEvents).first; + RingBuffer *ring{Context->AsyncEvents}; + auto evt_data = ring->getWriteVector().first; if(evt_data.len > 0) { AsyncEvent *evt{new (evt_data.buf) AsyncEvent{EventType_BufferCompleted}}; evt->u.bufcomp.id = SourceID; evt->u.bufcomp.count = buffers_done; - ll_ringbuffer_write_advance(Context->AsyncEvents, 1); + ring->writeAdvance(1); Context->EventSem.post(); } } |