aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-18 12:15:19 -0700
committerChris Robinson <[email protected]>2016-05-18 12:15:19 -0700
commitd80f00173f0ef623f69a9cc307457b198186ded8 (patch)
tree55a273aeefac805249bfe3c4e335c7f70522d3a4 /Alc
parentaff725cba3f64cb668acf64b8f547a128a8976d1 (diff)
Copy the source's Looping property into the voice
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 8be22e66..44361979 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -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)