Properly prefix ALCcontext members
This commit is contained in:
+20
-20
@@ -247,7 +247,7 @@ constexpr ALbitfieldSOFT INVALID_MAP_FLAGS{~unsigned(AL_MAP_READ_BIT_SOFT | AL_M
|
||||
|
||||
ALbuffer *AllocBuffer(ALCcontext *context)
|
||||
{
|
||||
ALCdevice *device{context->Device};
|
||||
ALCdevice *device{context->mDevice};
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
auto sublist = std::find_if(device->BufferList.begin(), device->BufferList.end(),
|
||||
[](const BufferSubList &entry) noexcept -> bool
|
||||
@@ -657,7 +657,7 @@ START_API_FUNC
|
||||
if(UNLIKELY(n == 0))
|
||||
return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
/* First try to find any buffers that are invalid or in-use. */
|
||||
@@ -700,7 +700,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(LIKELY(context))
|
||||
{
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
if(!buffer || LookupBuffer(device, buffer))
|
||||
return AL_TRUE;
|
||||
@@ -721,7 +721,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -755,7 +755,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return nullptr;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -807,7 +807,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -830,7 +830,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -862,7 +862,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -992,7 +992,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1012,7 +1012,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1031,7 +1031,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1053,7 +1053,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -1088,7 +1088,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1118,7 +1118,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -1156,7 +1156,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
@@ -1178,7 +1178,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1206,7 +1206,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
@@ -1228,7 +1228,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
if(UNLIKELY(!albuf))
|
||||
@@ -1273,7 +1273,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
if(UNLIKELY(LookupBuffer(device, buffer) == nullptr))
|
||||
alSetError(context.get(), AL_INVALID_NAME, "Invalid buffer ID %u", buffer);
|
||||
@@ -1308,7 +1308,7 @@ START_API_FUNC
|
||||
ContextRef context{GetContextRef()};
|
||||
if(UNLIKELY(!context)) return;
|
||||
|
||||
ALCdevice *device = context->Device;
|
||||
ALCdevice *device = context->mDevice;
|
||||
std::lock_guard<std::mutex> _{device->BufferLock};
|
||||
ALbuffer *albuf = LookupBuffer(device, buffer);
|
||||
if(UNLIKELY(!albuf))
|
||||
|
||||
Reference in New Issue
Block a user