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/mixer.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/mixer.c')
-rw-r--r-- | Alc/mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index b2af812a..9f6ec9d1 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -388,9 +388,9 @@ ALvoid MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALuint Sam BufferListItem = ATOMIC_LOAD(&Source->current_buffer); DataPosInt = ATOMIC_LOAD(&Source->position, almemory_order_relaxed); DataPosFrac = ATOMIC_LOAD(&Source->position_fraction, almemory_order_relaxed); + Looping = ATOMIC_LOAD(&Source->looping, almemory_order_relaxed); NumChannels = Source->NumChannels; SampleSize = Source->SampleSize; - Looping = voice->Looping; increment = voice->Step; IrSize = (Device->Hrtf ? Device->Hrtf->irSize : 0); |