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/v2db.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/iemlib1/v2db.c') 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 -#include -#include + /* -------- 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)); } -- cgit v1.2.1