From 541ab13ab9aaf849014d81d9159bd12a03320c74 Mon Sep 17 00:00:00 2001 From: musil Date: Wed, 8 Nov 2006 13:24:10 +0000 Subject: changed sig* to *_tilde #if MSC_VER is obsolete replaced all float by t_float svn path=/trunk/externals/iemlib/; revision=6231 --- src/iemlib1/db2v.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/iemlib1/db2v.c') 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 -#include -#include /* -------- 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)); } -- cgit v1.2.1