aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-06 00:37:00 -0700
committerChris Robinson <[email protected]>2019-06-06 00:37:00 -0700
commit585b0cf3bed7d1c5720633eb7e5358a9fca865f6 (patch)
tree1aa5d6b51afe900d2a1cbb069202c368a46f947a /OpenAL32
parenta7be53104953ac67081db8e539d423509f44f801 (diff)
Remove the DEF_ALIGN macro
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alSource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 6d4daecd..b2878b8e 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -1284,7 +1284,7 @@ ALboolean SetSourceiv(ALsource *Source, ALCcontext *Context, SourceProp prop, co
if(buffer != nullptr)
{
/* Add the selected buffer to a one-item queue */
- auto newlist = static_cast<ALbufferlistitem*>(al_calloc(DEF_ALIGN,
+ auto newlist = static_cast<ALbufferlistitem*>(al_calloc(alignof(void*),
ALbufferlistitem::Sizeof(1u)));
newlist->next.store(nullptr, std::memory_order_relaxed);
newlist->max_samples = buffer->SampleLen;
@@ -3185,13 +3185,13 @@ START_API_FUNC
if(!BufferListStart)
{
- BufferListStart = static_cast<ALbufferlistitem*>(al_calloc(DEF_ALIGN,
+ BufferListStart = static_cast<ALbufferlistitem*>(al_calloc(alignof(void*),
ALbufferlistitem::Sizeof(1u)));
BufferList = BufferListStart;
}
else
{
- auto item = static_cast<ALbufferlistitem*>(al_calloc(DEF_ALIGN,
+ auto item = static_cast<ALbufferlistitem*>(al_calloc(alignof(void*),
ALbufferlistitem::Sizeof(1u)));
BufferList->next.store(item, std::memory_order_relaxed);
BufferList = item;
@@ -3290,7 +3290,7 @@ START_API_FUNC
}
std::unique_lock<std::mutex> buflock{device->BufferLock};
- auto BufferListStart = static_cast<ALbufferlistitem*>(al_calloc(DEF_ALIGN,
+ auto BufferListStart = static_cast<ALbufferlistitem*>(al_calloc(alignof(void*),
ALbufferlistitem::Sizeof(nb)));
BufferList = BufferListStart;
BufferList->next.store(nullptr, std::memory_order_relaxed);