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

Function FreeBuffer

3rdparty/openal/al/buffer.cpp:329–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void FreeBuffer(ALCdevice *device, ALbuffer *buffer)
330{
331 const ALuint id{buffer->id - 1};
332 const size_t lidx{id >> 6};
333 const ALuint slidx{id & 0x3f};
334
335 al::destroy_at(buffer);
336
337 device->BufferList[lidx].FreeMask |= 1_u64 << slidx;
338}
339
340inline ALbuffer *LookupBuffer(ALCdevice *device, ALuint id)
341{

Callers 1

buffer.cppFile · 0.85

Calls 1

destroy_atFunction · 0.85

Tested by

no test coverage detected