Only use a modulo to loop when the source is static
This commit is contained in:
parent
5d579dd1a8
commit
23b2c1f902
@ -1365,7 +1365,7 @@ next_source:
|
|||||||
{
|
{
|
||||||
BufferListItem = ALSource->queue;
|
BufferListItem = ALSource->queue;
|
||||||
BuffersPlayed = 0;
|
BuffersPlayed = 0;
|
||||||
if(ALSource->BuffersInQueue == 1)
|
if(ALSource->lSourceType == AL_STATIC)
|
||||||
DataPosInt %= DataSize;
|
DataPosInt %= DataSize;
|
||||||
else
|
else
|
||||||
DataPosInt -= DataSize;
|
DataPosInt -= DataSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user