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/soundfile_info.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/soundfile_info.c')
-rw-r--r-- | src/iemlib1/soundfile_info.c | 15 |
1 files changed, 5 insertions, 10 deletions
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 <stdlib.h> @@ -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)); |