From 8bee7a2b7f6ab60e08f2f2fc8e0dc2d39563c006 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 16 Jun 2011 05:29:38 -0700 Subject: Don't suspend individual contexts when updating --- Alc/ALc.c | 2 -- Alc/ALu.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index 740d608d..46796434 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1382,7 +1382,6 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) ALCcontext *context = device->Contexts[i]; ALsizei pos; - SuspendContext(context); for(pos = 0;pos < context->EffectSlotMap.size;pos++) { ALeffectslot *slot = context->EffectSlotMap.array[pos].value; @@ -1414,7 +1413,6 @@ static ALCboolean UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) ALsource_Update(source, context); source->NeedsUpdate = AL_FALSE; } - ProcessContext(context); } ProcessContext(NULL); diff --git a/Alc/ALu.c b/Alc/ALu.c index 2c35498a..ab1c24dd 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -942,8 +942,6 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ctx_end = ctx + device->NumContexts; while(ctx != ctx_end) { - SuspendContext(*ctx); - src = (*ctx)->ActiveSources; src_end = src + (*ctx)->ActiveSourceCount; while(src != src_end) @@ -989,7 +987,6 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALEffectSlot->WetBuffer[i] = 0.0f; } - ProcessContext(*ctx); ctx++; } ProcessContext(NULL); -- cgit v1.2.3