Get a variable where it's needed

This commit is contained in:
Chris Robinson
2010-09-26 13:30:46 -07:00
parent 92d8d2f8a4
commit 845ca95888
+1 -3
View File
@@ -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;