From 845ca958886df34a545fa17d32e3d928a01c0cc7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Sep 2010 13:30:46 -0700 Subject: Get a variable where it's needed --- Alc/mixer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Alc/mixer.c') 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; -- cgit v1.2.3