summaryrefslogtreecommitdiffstats
path: root/Alc/alcReverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-24 12:17:39 -0700
committerChris Robinson <[email protected]>2011-09-24 12:17:39 -0700
commitcf56b0733b86019631c4b877ece6bcceb3b2b50a (patch)
treebe8ecd14048eeafed8a1c0d493f840ba4329a0ae /Alc/alcReverb.c
parent2b0a63003fca82f1bc5d1e36cf44d0018dc1b257 (diff)
Look for and use atan2f, log10f, and floorf
Diffstat (limited to 'Alc/alcReverb.c')
-rw-r--r--Alc/alcReverb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcReverb.c b/Alc/alcReverb.c
index 80439669..92a82a51 100644
--- a/Alc/alcReverb.c
+++ b/Alc/alcReverb.c
@@ -757,7 +757,7 @@ static __inline ALfloat CalcDecayCoeff(ALfloat length, ALfloat decayTime)
// reaches -60 dB.
static __inline ALfloat CalcDecayLength(ALfloat coeff, ALfloat decayTime)
{
- return log10(coeff) * decayTime / -3.0f/*log10(0.001)*/;
+ return aluLog10(coeff) * decayTime / aluLog10(0.001)/*-60 dB*/;
}
// Calculate the high frequency parameter for the I3DL2 coefficient