From c1419b43ea354fa04360450ae4f64612df065099 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 14 Nov 2005 21:59:09 +0000 Subject: these pragmas are only used for MSVC, not MinGW or Cygwin, therefore changing the define from NT to _MSC_VER svn path=/trunk/externals/ggee/; revision=3903 --- control/rtout.c | 82 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) (limited to 'control/rtout.c') diff --git a/control/rtout.c b/control/rtout.c index 95df28c..bc211e2 100755 --- a/control/rtout.c +++ b/control/rtout.c @@ -1,41 +1,41 @@ -/* (C) Guenter Geiger */ - - -#include - -/* -------------------------- rtout -------------------------- */ - -void sys_putmidimess(int portno, int a, int b, int c); - -static t_class *rtout_class; - - - -typedef struct _rtout -{ - t_object x_obj; - t_float x_rt; - t_float x_channel; -} t_rtout; - -static void *rtout_new(t_floatarg channel) -{ - t_rtout *x = (t_rtout *)pd_new(rtout_class); - if (channel <= 0) channel = 1; - x->x_channel = channel; - return (x); -} - -static void rtout_float(t_rtout *x, t_float f) -{ - int binchan = (int) x->x_channel - 1; - sys_putmidimess((binchan>>4),(int) f,0,0); -} - -void rtout_setup(void) -{ - rtout_class = class_new(gensym("rtout"), (t_newmethod)rtout_new, 0, - sizeof(t_rtout), 0, A_DEFFLOAT, A_DEFFLOAT, 0); - class_addfloat(rtout_class, rtout_float); -} - +/* (C) Guenter Geiger */ + + +#include + +/* -------------------------- rtout -------------------------- */ + +void sys_putmidimess(int portno, int a, int b, int c); + +static t_class *rtout_class; + + + +typedef struct _rtout +{ + t_object x_obj; + t_float x_rt; + t_float x_channel; +} t_rtout; + +static void *rtout_new(t_floatarg channel) +{ + t_rtout *x = (t_rtout *)pd_new(rtout_class); + if (channel <= 0) channel = 1; + x->x_channel = channel; + return (x); +} + +static void rtout_float(t_rtout *x, t_float f) +{ + int binchan = (int) x->x_channel - 1; + sys_putmidimess((binchan>>4),(int) f,0,0); +} + +void rtout_setup(void) +{ + rtout_class = class_new(gensym("rtout"), (t_newmethod)rtout_new, 0, + sizeof(t_rtout), 0, A_DEFFLOAT, A_DEFFLOAT, 0); + class_addfloat(rtout_class, rtout_float); +} + -- cgit v1.2.1