From f9da06fc6a265e3ab2f548a9533b222e7a183637 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 5 Jun 2019 19:58:58 -0700 Subject: Use a span for the effect state's output target --- OpenAL32/alAuxEffectSlot.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenAL32/alAuxEffectSlot.cpp') diff --git a/OpenAL32/alAuxEffectSlot.cpp b/OpenAL32/alAuxEffectSlot.cpp index 4c7b3507..249f7cf3 100644 --- a/OpenAL32/alAuxEffectSlot.cpp +++ b/OpenAL32/alAuxEffectSlot.cpp @@ -643,8 +643,7 @@ ALenum InitializeEffect(ALCcontext *Context, ALeffectslot *EffectSlot, ALeffect FPUCtl mixer_mode{}; ALCdevice *Device{Context->Device}; std::unique_lock statelock{Device->StateLock}; - State->mOutBuffer = Device->Dry.Buffer; - State->mOutChannels = Device->Dry.NumChannels; + State->mOutTarget = {Device->Dry.Buffer, Device->Dry.NumChannels}; if(State->deviceUpdate(Device) == AL_FALSE) { statelock.unlock(); -- cgit v1.2.3