aboutsummaryrefslogtreecommitdiffstats
path: root/al
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 /al
parent1f486f820e97fd5ce1da40a87aa3b743800fb5b0 (diff)
Pass a BufferStorage to EffectState::createBuffer
Diffstat (limited to 'al')
-rw-r--r--al/auxeffectslot.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index fb2d2233..1f35b344 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -469,9 +469,7 @@ START_API_FUNC
{
FPUCtl mixer_mode{};
auto *state = slot->Effect.State.get();
- 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));
}
}
break;
@@ -746,9 +744,7 @@ ALenum ALeffectslot::initEffect(ALeffect *effect, ALCcontext *context)
State->deviceUpdate(Device);
Effect.Buffer = nullptr;
if(Buffer)
- Effect.Buffer.reset(State->createBuffer(Device, Buffer->mBuffer.mData.data(),
- Buffer->mBuffer.mSampleRate, Buffer->mBuffer.mType, Buffer->mBuffer.mChannels,
- Buffer->mBuffer.mSampleLen));
+ Effect.Buffer.reset(State->createBuffer(Device, Buffer->mBuffer));
}
if(!effect)