From 455763aa9a1e46470ffb2baf1ecb12e7276f8fb2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Feb 2018 09:51:07 -0800 Subject: Count all buffers in a list item for processed and queued --- Alc/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/mixer.c b/Alc/mixer.c index eb4568b2..4946cb7b 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -749,7 +749,7 @@ ALboolean MixSource(ALvoice *voice, ALuint SourceID, ALCcontext *Context, ALsize if(CompLen > DataPosInt) break; - buffers_done++; + buffers_done += BufferListItem->num_buffers; BufferListItem = ATOMIC_LOAD(&BufferListItem->next, almemory_order_acquire); if(!BufferListItem && !(BufferListItem=BufferLoopItem)) { -- cgit v1.2.3