diff options
author | Chris Robinson <[email protected]> | 2019-07-04 15:02:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-04 15:02:12 -0700 |
commit | 3fe5ef272f436db82beeeee3ad123029e4d219b6 (patch) | |
tree | d7f79f3e99ec15bc8474050c922f227e888f24bd /Alc/alc.cpp | |
parent | 729ffe02d6ab05dc8c62e8332ef1878bbfbdf756 (diff) |
Use a span for MixParams
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 7 |
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 |