| 327 | } |
| 328 | |
| 329 | void 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 | |
| 340 | inline ALbuffer *LookupBuffer(ALCdevice *device, ALuint id) |
| 341 | { |