aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index b8ce5087..72a9763d 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -931,7 +931,10 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
}
ALSource->ulBufferID = ALSource->queue->buffer;
- ALSource->position = DataPosInt-DataSize;
+ if(ALSource->BuffersInQueue == 1)
+ ALSource->position = DataPosInt%DataSize;
+ else
+ ALSource->position = DataPosInt-DataSize;
ALSource->position_fraction = DataPosFrac;
}
}