diff options
author | Chris Robinson <[email protected]> | 2016-07-31 23:42:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-31 23:42:30 -0700 |
commit | 0fcd39c4c0205b8229df16f48b05cf0bf6600287 (patch) | |
tree | e94485a070eb032097ee010f15984d83dafa2d2f /Alc/ALu.c | |
parent | 48ff5d4ce8bd5f2d65c1aa8af77c2923d3be801c (diff) |
Don't store the looping state in the voice
Certain operations on the buffer queue depend on the loop state to behave
properly, so it should not be deferred until the async voice update occurs.
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -437,7 +437,6 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALsourceProps * voice->SendOut[i].Channels = SendSlots[i]->NumChannels; } } - voice->Looping = ATOMIC_LOAD(&props->Looping, almemory_order_relaxed); /* Calculate the stepping value */ Pitch *= (ALfloat)ALBuffer->Frequency / Frequency; @@ -906,7 +905,6 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALsourceProps *pro voice->SendOut[i].Channels = SendSlots[i]->NumChannels; } } - voice->Looping = ATOMIC_LOAD(&props->Looping, almemory_order_relaxed); /* Transform source to listener space (convert to head relative) */ if(ATOMIC_LOAD(&props->HeadRelative, almemory_order_relaxed) == AL_FALSE) |