aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 866bc4d9..5d2b2020 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -1903,8 +1903,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->ChannelDelay.clear();
device->Dry.AmbiMap.fill(BFChannelConfig{});
- device->Dry.Buffer = nullptr;
- device->Dry.NumChannels = 0;
+ device->Dry.Buffer = {};
std::fill(std::begin(device->NumChannelsPerOrder), std::end(device->NumChannelsPerOrder), 0u);
device->RealOut.ChannelIndex.fill(-1);
device->RealOut.Buffer = {};
@@ -2158,7 +2157,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
aluInitEffectPanning(slot, device);
EffectState *state{slot->Effect.State};
- state->mOutTarget = {device->Dry.Buffer, device->Dry.NumChannels};
+ state->mOutTarget = device->Dry.Buffer;
if(state->deviceUpdate(device) == AL_FALSE)
update_failed = AL_TRUE;
else
@@ -2180,7 +2179,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
aluInitEffectPanning(slot, device);
EffectState *state{slot->Effect.State};
- state->mOutTarget = {device->Dry.Buffer, device->Dry.NumChannels};
+ state->mOutTarget = device->Dry.Buffer;
if(state->deviceUpdate(device) == AL_FALSE)
update_failed = AL_TRUE;
else