diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/effects/compressor.cpp | 2 | ||||
-rw-r--r-- | alc/effects/reverb.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alc/effects/compressor.cpp b/alc/effects/compressor.cpp index 176e5a58..44ffaaef 100644 --- a/alc/effects/compressor.cpp +++ b/alc/effects/compressor.cpp @@ -161,7 +161,7 @@ void Compressor_setParami(EffectProps *props, ALCcontext *context, ALenum param, case AL_COMPRESSOR_ONOFF: if(!(val >= AL_COMPRESSOR_MIN_ONOFF && val <= AL_COMPRESSOR_MAX_ONOFF)) SETERR_RETURN(context, AL_INVALID_VALUE,, "Compressor state out of range"); - props->Compressor.OnOff = val; + props->Compressor.OnOff = val != AL_FALSE; break; default: diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index b5100a14..82a80198 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -1526,7 +1526,7 @@ void EAXReverb_setParami(EffectProps *props, ALCcontext *context, ALenum param, case AL_EAXREVERB_DECAY_HFLIMIT: if(!(val >= AL_EAXREVERB_MIN_DECAY_HFLIMIT && val <= AL_EAXREVERB_MAX_DECAY_HFLIMIT)) SETERR_RETURN(context, AL_INVALID_VALUE,, "EAX Reverb decay hflimit out of range"); - props->Reverb.DecayHFLimit = val; + props->Reverb.DecayHFLimit = val != AL_FALSE; break; default: @@ -1863,7 +1863,7 @@ void StdReverb_setParami(EffectProps *props, ALCcontext *context, ALenum param, case AL_REVERB_DECAY_HFLIMIT: if(!(val >= AL_REVERB_MIN_DECAY_HFLIMIT && val <= AL_REVERB_MAX_DECAY_HFLIMIT)) SETERR_RETURN(context, AL_INVALID_VALUE,, "Reverb decay hflimit out of range"); - props->Reverb.DecayHFLimit = val; + props->Reverb.DecayHFLimit = val != AL_FALSE; break; default: |