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/db2v.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/db2v.c')
-rw-r--r-- | src/iemlib1/db2v.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/iemlib1/db2v.c b/src/iemlib1/db2v.c index e8b1db4..a2b075e 100644 --- a/src/iemlib1/db2v.c +++ b/src/iemlib1/db2v.c @@ -3,28 +3,21 @@ 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> /* -------- db2v - a techn. dB to rms-value converter. --------- */ static t_class *db2v_class; -float db2v(float f) +t_float db2v(t_float f) { return (f <= -199.9 ? 0 : exp(0.11512925465 * f)); } -static void db2v_float(t_object *x, t_float f) +static void db2v_float(t_object *x, t_floatarg f) { outlet_float(x->ob_outlet, db2v(f)); } |