Get a variable where it's needed
This commit is contained in:
+1
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user