aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-25 09:51:07 -0800
committerChris Robinson <[email protected]>2018-02-25 09:51:07 -0800
commit455763aa9a1e46470ffb2baf1ecb12e7276f8fb2 (patch)
treeabbbd7038f1d2221029111b7ef2f2e5ee72298dd /Alc
parentc7456affd541b7aef9ff252da51031e671c30734 (diff)
Count all buffers in a list item for processed and queued
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mixer.c2
1 files changed, 1 insertions, 1 deletions
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))
{