diff options
author | Chris Robinson <[email protected]> | 2017-05-21 00:01:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-21 00:01:39 -0700 |
commit | 0b2467ed54507f64509dc21f6ba9f2d346ef5628 (patch) | |
tree | fb4f26f3b0229e72eeef55a3e8920b10afeeb909 /Alc/effects | |
parent | c234b25ac7ace092867cc3348e7ea2b2754a7284 (diff) |
Use a macro to specify the decay target gain
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/reverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 0d0ca277..39daff53 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -645,7 +645,7 @@ static ALboolean ALreverbState_deviceUpdate(ALreverbState *State, ALCdevice *Dev */ static inline ALfloat CalcDecayCoeff(const ALfloat length, const ALfloat decayTime) { - return powf(0.001f/*-60 dB*/, length/decayTime); + return powf(REVERB_DECAY_GAIN, length/decayTime); } /* Calculate a decay length from a coefficient and the time until the decay @@ -653,7 +653,7 @@ static inline ALfloat CalcDecayCoeff(const ALfloat length, const ALfloat decayTi */ static inline ALfloat CalcDecayLength(const ALfloat coeff, const ALfloat decayTime) { - return log10f(coeff) * decayTime / log10f(0.001f)/*-60 dB*/; + return log10f(coeff) * decayTime / log10f(REVERB_DECAY_GAIN); } /* Calculate an attenuation to be applied to the input of any echo models to |