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/soundfile_info.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/iemlib1/soundfile_info.c') diff --git a/src/iemlib1/soundfile_info.c b/src/iemlib1/soundfile_info.c index 662216c..1eb4ded 100644 --- a/src/iemlib1/soundfile_info.c +++ b/src/iemlib1/soundfile_info.c @@ -3,11 +3,6 @@ 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 @@ -162,7 +157,7 @@ soundfile_info_fmt: post("soundfile_info_read-error: %s has no common channel-number", completefilename); goto soundfile_info_end; } - SETFLOAT(x->x_atheader+SFI_HEADER_CHANNELS, (float)ss); + SETFLOAT(x->x_atheader+SFI_HEADER_CHANNELS, (t_float)ss); ch = ss; header_size += 2; cvec += 2; @@ -173,7 +168,7 @@ soundfile_info_fmt: post("soundfile_info_read-error: %s has no common samplerate", completefilename); goto soundfile_info_end; } - SETFLOAT(x->x_atheader+SFI_HEADER_SAMPLERATE, (float)ll); + SETFLOAT(x->x_atheader+SFI_HEADER_SAMPLERATE, (t_float)ll); sr = ll; header_size += 4; cvec += 4; @@ -188,7 +183,7 @@ soundfile_info_fmt: post("soundfile_info_read-error: %s has no common number of bytes per sample", completefilename); goto soundfile_info_end; } - SETFLOAT(x->x_atheader+SFI_HEADER_BYTES_PER_SAMPLE, (float)(ss/ch)); + SETFLOAT(x->x_atheader+SFI_HEADER_BYTES_PER_SAMPLE, (t_float)(ss/ch)); bps = ss; header_size += 2; cvec += 2; @@ -210,11 +205,11 @@ soundfile_info_data: header_size += 8; cvec += 8; - SETFLOAT(x->x_atheader+SFI_HEADER_HEADERBYTES, (float)header_size); + SETFLOAT(x->x_atheader+SFI_HEADER_HEADERBYTES, (t_float)header_size); filesize -= header_size; filesize /= bps; - SETFLOAT(x->x_atheader+SFI_HEADER_MULTICHANNEL_FILE_LENGTH, (float)filesize); + SETFLOAT(x->x_atheader+SFI_HEADER_MULTICHANNEL_FILE_LENGTH, (t_float)filesize); SETSYMBOL(x->x_atheader+SFI_HEADER_ENDINESS, gensym("l")); SETSYMBOL(x->x_atheader+SFI_HEADER_FILENAME, gensym(completefilename)); -- cgit v1.2.1