aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-01-23 15:04:42 -0800
committerChris Robinson <[email protected]>2011-01-23 15:04:42 -0800
commitc95bd6cadf8f1b850a34e123eb4314dbe5993cbc (patch)
tree1d76d1859d80dec9bd789c03b2bbca03adbc0e5c
parentd73694d3e61db2157f1934d6cc0add7ab34b8b03 (diff)
Fix loop handling when traversing the buffer queue backwards
-rw-r--r--Alc/mixer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index a6fe7522..af50c72e 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -659,13 +659,13 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
break;
}
- if(Looping)
+ if(BufferListIter->prev)
+ BufferListIter = BufferListIter->prev;
+ else
{
while(BufferListIter->next)
BufferListIter = BufferListIter->next;
}
- else
- BufferListIter = BufferListIter->prev;
if(BufferListIter->buffer)
{