diff options
author | musil <tmusil@users.sourceforge.net> | 2006-11-08 13:24:10 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2006-11-08 13:24:10 +0000 |
commit | 541ab13ab9aaf849014d81d9159bd12a03320c74 (patch) | |
tree | 24f430aa267e2637dc3b61db142ec189457fabd9 /src/iemlib1/v2db.c | |
parent | d3af2d2474bfff3a987d54bc58d96c97cea1ec11 (diff) |
changed sig* to *_tilde
#if MSC_VER is obsolete
replaced all float by t_float
svn path=/trunk/externals/iemlib/; revision=6231
Diffstat (limited to 'src/iemlib1/v2db.c')
-rw-r--r-- | src/iemlib1/v2db.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/iemlib1/v2db.c b/src/iemlib1/v2db.c index e0781ea..d11682d 100644 --- a/src/iemlib1/v2db.c +++ b/src/iemlib1/v2db.c @@ -3,23 +3,17 @@ iemlib1 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */ -#ifdef _MSC_VER -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif - #include "m_pd.h" #include "iemlib.h" #include <math.h> -#include <stdio.h> -#include <string.h> + /* -------- v2db - a rms-value to techn. dB converter. --------- */ static t_class *v2db_class; -float v2db(float f) +t_float v2db(t_float f) { return (f <= 0 ? -199.9 : 8.6858896381*log(f)); } |