Update of /cvsroot/pure-data/externals/unauthorized/exciter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16368/exciter
Modified Files: exciter.c Log Message: trying out the roast of these NT Tweak .
Index: exciter.c =================================================================== RCS file: /cvsroot/pure-data/externals/unauthorized/exciter/exciter.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** exciter.c 25 Sep 2003 20:58:54 -0000 1.5 --- exciter.c 30 May 2004 05:19:59 -0000 1.6 *************** *** 38,43 **** #include <ctype.h> #include <time.h> - #include <sys/time.h> - #include <m_pd.h>
--- 38,41 ---- *************** *** 49,53 **** --- 47,54 ---- #ifdef NT #include <io.h> + #include <winsock2.h> + #include <sys/timeb.h> #else + #include <sys/time.h> #include <unistd.h> #endif *************** *** 688,693 **** --- 689,699 ---- t_int gstart, gend; t_exciter* x = (t_exciter*)(w[1]); + #ifdef NT + time_t et; + struct _timeb tv; + #else struct timeval tv; struct timezone tz; + #endif long long looptime = 0L; double preltime = x->x_reltime; *************** *** 696,701 **** { // get current time in ms ! gettimeofday( &tv, &tz ); ! looptime = tv.tv_sec*1000 + tv.tv_usec/1000; if ( x->x_plooptime == 0L ) { --- 702,713 ---- { // get current time in ms ! #ifdef NT ! time( &et ); ! _ftime( &tv ); ! looptime = et*1000 + tv.millitm; ! #else ! gettimeofday( &tv, &tz ); ! looptime = tv.tv_sec*1000 + tv.tv_usec/1000; ! #endif if ( x->x_plooptime == 0L ) {