aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcReverb.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r--Alc/alcReverb.c4
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