aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/mixer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index b047d6bb..a452727e 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -634,9 +634,6 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
DataPosFrac = Source->position_fraction;
Looping = Source->bLooping;
- /* Get fixed point step */
- increment = Source->Params.Step;
-
/* Get current buffer queue item */
BufferListItem = Source->queue;
for(i = 0;i < BuffersPlayed;i++)
@@ -710,6 +707,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
memset(&Data.p8[DataSize*Channels*Bytes], 0, (BUFFER_PADDING*Channels*Bytes));
/* Figure out how many samples we can mix. */
+ increment = Source->Params.Step;
DataSize64 = LoopEnd;
DataSize64 <<= FRACTIONBITS;
DataPos64 = DataPosInt;