Only use a modulo to loop when the source is static

This commit is contained in:
Chris Robinson 2010-05-13 02:12:50 -07:00
parent 5d579dd1a8
commit 23b2c1f902

View File

@ -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;