Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libspeex/vorbis_psy.h')
-rw-r--r--libspeex/vorbis_psy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libspeex/vorbis_psy.h b/libspeex/vorbis_psy.h
index fbdb7c5..6871057 100644
--- a/libspeex/vorbis_psy.h
+++ b/libspeex/vorbis_psy.h
@@ -39,7 +39,7 @@
#define NOISE_COMPAND_LEVELS 40
-#define todB(x) ((x)==0?-400.f:log((x)*(x))*4.34294480f)
+#define todB(x) ((x)>1e-13?log((x)*(x))*4.34294480f:-30)
#define fromdB(x) (exp((x)*.11512925f))
/* The bark scale equations are approximations, since the original