aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-12 23:12:11 -0700
committerChris Robinson <[email protected]>2016-05-12 23:12:11 -0700
commit9e6d8342de62df83377b19577268af7106cdc088 (patch)
treeb60690e092a3c5d7de442273e8cfeafd814a0a72 /Alc/effects/reverb.c
parent8d14824c657a1471d08e175c8153909627313d70 (diff)
Hold the effect and filter maps while handling effects and filters
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index bd5637e9..0f851295 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -1652,20 +1652,16 @@ void ALeaxreverb_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param,
case AL_EAXREVERB_REFLECTIONS_PAN:
if(!(isfinite(vals[0]) && isfinite(vals[1]) && isfinite(vals[2])))
SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE);
- LockContext(context);
props->Reverb.ReflectionsPan[0] = vals[0];
props->Reverb.ReflectionsPan[1] = vals[1];
props->Reverb.ReflectionsPan[2] = vals[2];
- UnlockContext(context);
break;
case AL_EAXREVERB_LATE_REVERB_PAN:
if(!(isfinite(vals[0]) && isfinite(vals[1]) && isfinite(vals[2])))
SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE);
- LockContext(context);
props->Reverb.LateReverbPan[0] = vals[0];
props->Reverb.LateReverbPan[1] = vals[1];
props->Reverb.LateReverbPan[2] = vals[2];
- UnlockContext(context);
break;
default:
@@ -1786,18 +1782,14 @@ void ALeaxreverb_getParamfv(const ALeffect *effect, ALCcontext *context, ALenum
switch(param)
{
case AL_EAXREVERB_REFLECTIONS_PAN:
- LockContext(context);
vals[0] = props->Reverb.ReflectionsPan[0];
vals[1] = props->Reverb.ReflectionsPan[1];
vals[2] = props->Reverb.ReflectionsPan[2];
- UnlockContext(context);
break;
case AL_EAXREVERB_LATE_REVERB_PAN:
- LockContext(context);
vals[0] = props->Reverb.LateReverbPan[0];
vals[1] = props->Reverb.LateReverbPan[1];
vals[2] = props->Reverb.LateReverbPan[2];
- UnlockContext(context);
break;
default: