aboutsummaryrefslogtreecommitdiff
path: root/control/rtout.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-11-14 21:59:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-11-14 21:59:09 +0000
commitc1419b43ea354fa04360450ae4f64612df065099 (patch)
tree8c38d7338e9df7e889a18dceeedb3509adbbf423 /control/rtout.c
parent76be9508936fa53fe661d378ee2fc41cc9baebf3 (diff)
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
Diffstat (limited to 'control/rtout.c')
-rwxr-xr-xcontrol/rtout.c82
1 files changed, 41 insertions, 41 deletions
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 <geiger@epy.co.at> */
-
-
-#include <m_pd.h>
-
-/* -------------------------- 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 <geiger@epy.co.at> */
+
+
+#include <m_pd.h>
+
+/* -------------------------- 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);
+}
+