aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-05 19:58:58 -0700
committerChris Robinson <[email protected]>2019-06-05 19:58:58 -0700
commitf9da06fc6a265e3ab2f548a9533b222e7a183637 (patch)
treed430e2bdf5d4a20f8f4a29efda8901d861417d01 /Alc/alc.cpp
parent1ce310c6d1719c6f71664385e136b5510602ac21 (diff)
Use a span for the effect state's output target
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index a71cb662..58512f52 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2062,8 +2062,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
aluInitEffectPanning(slot, device);
EffectState *state{slot->Effect.State};
- state->mOutBuffer = device->Dry.Buffer;
- state->mOutChannels = device->Dry.NumChannels;
+ state->mOutTarget = {device->Dry.Buffer, device->Dry.NumChannels};
if(state->deviceUpdate(device) == AL_FALSE)
update_failed = AL_TRUE;
else
@@ -2085,8 +2084,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
aluInitEffectPanning(slot, device);
EffectState *state{slot->Effect.State};
- state->mOutBuffer = device->Dry.Buffer;
- state->mOutChannels = device->Dry.NumChannels;
+ state->mOutTarget = {device->Dry.Buffer, device->Dry.NumChannels};
if(state->deviceUpdate(device) == AL_FALSE)
update_failed = AL_TRUE;
else