summaryrefslogtreecommitdiff
path: root/audio/splay/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/splay/patches/patch-ab')
-rw-r--r--audio/splay/patches/patch-ab37
1 files changed, 37 insertions, 0 deletions
diff --git a/audio/splay/patches/patch-ab b/audio/splay/patches/patch-ab
new file mode 100644
index 00000000000..2f1bceb3277
--- /dev/null
+++ b/audio/splay/patches/patch-ab
@@ -0,0 +1,37 @@
+$NetBSD: patch-ab,v 1.4 2000/02/20 18:30:39 dmcmahill Exp $
+
+--- mpegsound/mpegsound.h.orig Fri Mar 6 12:43:55 1998
++++ mpegsound/mpegsound.h Sun Feb 20 13:02:24 2000
+@@ -12,4 +12,5 @@
+ #include <stdio.h>
+ #include <sys/types.h>
++#include <machine/endian.h>
+
+ #ifdef PTHREADEDMPEG
+@@ -91,4 +92,6 @@
+ /* Define values for Microsoft WAVE format */
+ /*******************************************/
++#if defined(BYTE_ORDER) && (BYTE_ORDER == LITTLE_ENDIAN )
++
+ #define RIFF 0x46464952
+ #define WAVE 0x45564157
+@@ -101,4 +104,19 @@
+ #define MODE_MONO 0
+ #define MODE_STEREO 1
++
++#else
++
++#define RIFF 0x52494646
++#define WAVE 0x57415645
++#define FMT 0x666D7420
++#define DATA 0x64617461
++#define PCM_CODE (1 << 8)
++#define WAVE_MONO (1 << 8)
++#define WAVE_STEREO (2 << 8)
++
++#define MODE_MONO 0
++#define MODE_STEREO 1
++
++#endif
+
+ /********************/