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

Function LookupFilter

3rdparty/openal/al/source.cpp:602–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602inline ALfilter *LookupFilter(ALCdevice *device, ALuint id) noexcept
603{
604 const size_t lidx{(id-1) >> 6};
605 const ALuint slidx{(id-1) & 0x3f};
606
607 if UNLIKELY(lidx >= device->FilterList.size())
608 return nullptr;
609 FilterSubList &sublist = device->FilterList[lidx];
610 if UNLIKELY(sublist.FreeMask & (1_u64 << slidx))
611 return nullptr;
612 return sublist.Filters + slidx;
613}
614
615inline ALeffectslot *LookupEffectSlot(ALCcontext *context, ALuint id) noexcept
616{

Callers 1

SetSourceivFunction · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected