MCPcopy Create free account
hub / github.com/crownengine/crown / UpdateAllSourceProps

Function UpdateAllSourceProps

3rdparty/openal/al/source.cpp:3322–3334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3320}
3321
3322void UpdateAllSourceProps(ALCcontext *context)
3323{
3324 std::lock_guard<std::mutex> _{context->mSourceLock};
3325 std::for_each(context->mVoices.begin(), context->mVoices.end(),
3326 [context](ALvoice &voice) -> void
3327 {
3328 ALuint sid{voice.mSourceID.load(std::memory_order_acquire)};
3329 ALsource *source = sid ? LookupSource(context, sid) : nullptr;
3330 if(source && !source->PropsClean.test_and_set(std::memory_order_acq_rel))
3331 UpdateSourceProps(source, &voice, context);
3332 }
3333 );
3334}
3335
3336SourceSubList::~SourceSubList()
3337{

Callers 2

processUpdatesMethod · 0.85
UpdateDeviceParamsFunction · 0.85

Calls 5

LookupSourceFunction · 0.85
UpdateSourcePropsFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected