diff options
author | Chris Robinson <[email protected]> | 2019-06-05 19:58:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-05 19:58:58 -0700 |
commit | f9da06fc6a265e3ab2f548a9533b222e7a183637 (patch) | |
tree | d430e2bdf5d4a20f8f4a29efda8901d861417d01 /OpenAL32/alAuxEffectSlot.cpp | |
parent | 1ce310c6d1719c6f71664385e136b5510602ac21 (diff) |
Use a span for the effect state's output target
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.cpp')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<std::mutex> 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(); |