280725774f
Pd is a real-time graphical programming environment for audio and graphical processing. It resembles the Max/MSP system but is much simpler and more portable; also Pd has two features not (yet) showing up in Max/MSP: first, via Mark Dank's GEM package, Pd can be used for simultaneous computer animation and computer audio. Second, an experimental facility is provided for defining and accessing data structures. Submitted by: trevor
21 lines
512 B
C
21 lines
512 B
C
--- src/d_osc.c.orig Fri Nov 16 23:57:14 2001
|
|
+++ src/d_osc.c Fri May 24 23:12:26 2002
|
|
@@ -24,6 +24,18 @@
|
|
#define LOWOFFSET 0
|
|
#define int32 long
|
|
#else
|
|
+#ifdef __FreeBSD__
|
|
+#include <machine/endian.h>
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
+#define HIOFFSET 1
|
|
+#define LOWOFFSET 0
|
|
+#else
|
|
+#define HIOFFSET 0 /* word offset to find MSB */
|
|
+#define LOWOFFSET 1 /* word offset to find LSB */
|
|
+#endif /* BYTE_ORDER */
|
|
+#include <sys/types.h>
|
|
+#define int32 int32_t
|
|
+#endif
|
|
#ifdef __linux__
|
|
|
|
#include <endian.h>
|