aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-08-28 00:44:55 -0700
committerChris Robinson <[email protected]>2020-08-28 00:44:55 -0700
commit986a58d5b4936ec6bd4dca7769d291e5a5961f75 (patch)
treeaf23aa17ee0250836417a5354cde318afece9c81 /alc/alc.cpp
parent1f486f820e97fd5ce1da40a87aa3b743800fb5b0 (diff)
Pass a BufferStorage to EffectState::createBuffer
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 3ad3569c..7841df28 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2101,9 +2101,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
if(ALbuffer *buffer{slot->Buffer})
{
slot->Effect.Buffer = nullptr;
- slot->Effect.Buffer.reset(state->createBuffer(device, buffer->mBuffer.mData.data(),
- buffer->mBuffer.mSampleRate, buffer->mBuffer.mType, buffer->mBuffer.mChannels,
- buffer->mBuffer.mSampleLen));
+ slot->Effect.Buffer.reset(state->createBuffer(device, buffer->mBuffer));
}
slot->updateProps(context);
}
@@ -2129,10 +2127,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
if(ALbuffer *buffer{slot->Buffer})
{
slot->Effect.Buffer = nullptr;
- slot->Effect.Buffer.reset(state->createBuffer(device,
- buffer->mBuffer.mData.data(), buffer->mBuffer.mSampleRate,
- buffer->mBuffer.mType, buffer->mBuffer.mChannels,
- buffer->mBuffer.mSampleLen));
+ slot->Effect.Buffer.reset(state->createBuffer(device, buffer->mBuffer));
}
slot->updateProps(context);
}