From 52d58a40234b8829801f0a587375eca91694c30f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 2 Nov 2020 04:24:36 -0800 Subject: Store the wet buffers in the context This is rather ugly, but we need the wet buffers to remain allocated after its effect slot is deleted, because a voice can still use it for its final fade-out mix. --- alc/alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/alu.cpp') diff --git a/alc/alu.cpp b/alc/alu.cpp index 5bc1f6bf..262986e4 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1739,7 +1739,7 @@ void ProcessContexts(ALCdevice *device, const ALuint SamplesToDo) /* Clear auxiliary effect slot mixing buffers. */ for(ALeffectslot *slot : auxslots) { - for(auto &buffer : slot->MixBuffer) + for(auto &buffer : slot->Wet.Buffer) buffer.fill(0.0f); } -- cgit v1.2.3