[PD-cvs] SF.net SVN: pure-data: [9994] trunk/externals/iem/dmx512/src/dmxout.c

zmoelnig at users.sourceforge.net zmoelnig at users.sourceforge.net
Fri Jun 13 15:42:02 CEST 2008


Revision: 9994
          http://pure-data.svn.sourceforge.net/pure-data/?rev=9994&view=rev
Author:   zmoelnig
Date:     2008-06-13 06:42:01 -0700 (Fri, 13 Jun 2008)

Log Message:
-----------
...

Modified Paths:
--------------
    trunk/externals/iem/dmx512/src/dmxout.c

Modified: trunk/externals/iem/dmx512/src/dmxout.c
===================================================================
--- trunk/externals/iem/dmx512/src/dmxout.c	2008-06-13 13:39:54 UTC (rev 9993)
+++ trunk/externals/iem/dmx512/src/dmxout.c	2008-06-13 13:42:01 UTC (rev 9994)
@@ -33,20 +33,6 @@
 
 } t_dmxout;
 
-
-static void dmxout_doout(t_dmxout*x, short port, unsigned char value)
-{
-  dmx_t buffer[1] = {value};
-  if(x->x_device<=0) {
-    pd_error(x, "no DMX universe found");
-    return;
-  }
-
-  lseek (x->x_device, sizeof(buffer)*port, SEEK_SET);  /* set to the current channel */
-  write (x->x_device, buffer, sizeof(buffer)); /* write the channel */
-}
-
-
 static void dmxout_close(t_dmxout*x)
 {
   if(x->x_device>=0) {
@@ -78,7 +64,19 @@
   }
 }
 
+static void dmxout_doout(t_dmxout*x, short port, unsigned char value)
+{
+  dmx_t buffer[1] = {value};
+  if(x->x_device<=0) {
+    pd_error(x, "no DMX universe found");
+    return;
+  }
 
+  lseek (x->x_device, sizeof(buffer)*port, SEEK_SET);  /* set to the current channel */
+  write (x->x_device, buffer, sizeof(buffer)); /* write the channel */
+}
+
+
 static void dmxout_float(t_dmxout*x, t_float f)
 {
   unsigned char val=(unsigned char)f;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Pd-cvs mailing list