aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-05-13 02:12:50 -0700
committerChris Robinson <[email protected]>2010-05-13 02:12:50 -0700
commit23b2c1f902a0af9c33e302827d1ff7725b745d60 (patch)
tree5aefc81ef9c63db263c3beed34498c3bc6eea90a
parent5d579dd1a80e8bb4e408024f4706faa0d041f91e (diff)
Only use a modulo to loop when the source is static
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index a5513985..8b546506 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1365,7 +1365,7 @@ next_source:
{
BufferListItem = ALSource->queue;
BuffersPlayed = 0;
- if(ALSource->BuffersInQueue == 1)
+ if(ALSource->lSourceType == AL_STATIC)
DataPosInt %= DataSize;
else
DataPosInt -= DataSize;