From eca8825ab4dad656dfbc92617688afc8f10ad653 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Oct 2009 13:38:02 -0700 Subject: Explicitly suspend the context being processed for mixing --- Alc/ALu.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index c7a6d361..ceb01e09 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1229,6 +1229,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) for(c = 0;c < device->NumContexts;c++) { ALContext = device->Contexts[c]; + SuspendContext(ALContext); + MixSomeSources(ALContext, DryBuffer, SamplesToDo); /* effect slot processing */ @@ -1242,6 +1244,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALEffectSlot->WetBuffer[i] = 0.0f; ALEffectSlot = ALEffectSlot->next; } + ProcessContext(ALContext); } //Post processing loop -- cgit v1.2.3