diff options
author | Chris Robinson <[email protected]> | 2011-07-17 17:51:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-17 17:51:13 -0700 |
commit | c9b6bc848f732a4bc88220302c482a6c63cedc82 (patch) | |
tree | 63fffdfcc55693bc3c17b380c6f7e0e5222252c2 | |
parent | f97310c757e01e601319f007bf77db841097d0e0 (diff) |
Simplify some reverb update calculations
-rw-r--r-- | Alc/alcReverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c index 43197912..27caad6f 100644 --- a/Alc/alcReverb.c +++ b/Alc/alcReverb.c @@ -315,14 +315,14 @@ static ALboolean AllocLines(ALboolean eaxFlag, ALuint frequency, ALverbState *St // until the decay reaches -60 dB. static __inline ALfloat CalcDecayCoeff(ALfloat length, ALfloat decayTime) { - return aluPow(10.0f, length / decayTime * -60.0f / 20.0f); + return aluPow(0.001f/*-60 dB*/, length/decayTime); } // Calculate a decay length from a coefficient and the time until the decay // reaches -60 dB. static __inline ALfloat CalcDecayLength(ALfloat coeff, ALfloat decayTime) { - return log10(coeff) / -60.0 * 20.0f * decayTime; + return log10(coeff) * decayTime / -3.0f/*log10(0.001)*/; } // Calculate the high frequency parameter for the I3DL2 coefficient |