aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
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);
}