diff options
author | Chris Robinson <[email protected]> | 2010-05-13 02:12:50 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-05-13 02:12:50 -0700 |
commit | 23b2c1f902a0af9c33e302827d1ff7725b745d60 (patch) | |
tree | 5aefc81ef9c63db263c3beed34498c3bc6eea90a | |
parent | 5d579dd1a80e8bb4e408024f4706faa0d041f91e (diff) |
Only use a modulo to loop when the source is static
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |