diff options
author | Chris Robinson <[email protected]> | 2016-05-18 12:15:19 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-18 12:15:19 -0700 |
commit | d80f00173f0ef623f69a9cc307457b198186ded8 (patch) | |
tree | 55a273aeefac805249bfe3c4e335c7f70522d3a4 /Alc | |
parent | aff725cba3f64cb668acf64b8f547a128a8976d1 (diff) |
Copy the source's Looping property into the voice
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -437,6 +437,7 @@ static void CalcNonAttnSourceParams(ALvoice *voice, const struct ALsourceProps * voice->Send[i].OutChannels = SendSlots[i]->NumChannels; } } + voice->Looping = ATOMIC_LOAD(&props->Looping, almemory_order_relaxed); /* Calculate the stepping value */ Pitch *= (ALfloat)ALBuffer->Frequency / Frequency; @@ -905,6 +906,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALsourceProps *pro voice->Send[i].OutChannels = 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) |