diff options
author | Chris Robinson <[email protected]> | 2010-09-26 13:30:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-09-26 13:30:46 -0700 |
commit | 845ca958886df34a545fa17d32e3d928a01c0cc7 (patch) | |
tree | 5a50b8c399a355a36840b17e792d9a8ef1477570 /Alc/mixer.c | |
parent | 92d8d2f8a472541407a3c22b2cf862f49d7b1b46 (diff) |
Get a variable where it's needed
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 4 |
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; |