summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authormycroft <mycroft@pkgsrc.org>2001-03-31 02:50:07 +0000
committermycroft <mycroft@pkgsrc.org>2001-03-31 02:50:07 +0000
commitd01344f7ee7f30f785c90a074e091691de862431 (patch)
tree1b0c9822773ce42d4bec8f4857a1b4f219f121e2 /audio
parent5d5f83963a923bb94ea8c3e7cb962d8fe6d2518c (diff)
downloadpkgsrc-d01344f7ee7f30f785c90a074e091691de862431.tar.gz
Samples are stored in the audio buffer in host order, not little-endian. Don't
generate static on big-endian machines. (Haven't I fixed this before??)
Diffstat (limited to 'audio')
-rw-r--r--audio/libmikmod/files/patch-sum4
-rw-r--r--audio/libmikmod/patches/patch-ad38
2 files changed, 38 insertions, 4 deletions
diff --git a/audio/libmikmod/files/patch-sum b/audio/libmikmod/files/patch-sum
index d0a93eb713a..8fffe67fec0 100644
--- a/audio/libmikmod/files/patch-sum
+++ b/audio/libmikmod/files/patch-sum
@@ -1,6 +1,6 @@
-$NetBSD: patch-sum,v 1.5 2001/03/31 02:41:07 mycroft Exp $
+$NetBSD: patch-sum,v 1.6 2001/03/31 02:50:07 mycroft Exp $
SHA1 (patch-aa) = bfff6a9a77238e159e039bfa7d3f590bce8c9c9c
SHA1 (patch-ab) = afda9a7d29e70e42c037163ac5b2d2742c77daab
SHA1 (patch-ac) = c95d59a291570643c0b62c728ed3753fe9edb472
-SHA1 (patch-ad) = 479d35d123c3cb49e505a1d293da395f1fafd7c8
+SHA1 (patch-ad) = 61c2ef96b696ec75cd2f71d101e62734dcb9be56
diff --git a/audio/libmikmod/patches/patch-ad b/audio/libmikmod/patches/patch-ad
index 1f2b592ae03..27ce315b854 100644
--- a/audio/libmikmod/patches/patch-ad
+++ b/audio/libmikmod/patches/patch-ad
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.2 2001/03/31 02:41:08 mycroft Exp $
+$NetBSD: patch-ad,v 1.3 2001/03/31 02:50:07 mycroft Exp $
--- drivers/drv_sun.c.orig Mon Feb 14 22:10:21 2000
-+++ drivers/drv_sun.c Sat Mar 31 02:39:24 2001
++++ drivers/drv_sun.c Sat Mar 31 02:48:11 2001
@@ -61,7 +61,7 @@
#include <sys/audioio.h>
#endif
@@ -20,3 +20,37 @@ $NetBSD: patch-ad,v 1.2 2001/03/31 02:41:08 mycroft Exp $
#define SOUNDDEVICE "/dev/sound"
#else /* Solaris, *BSD */
#define SOUNDDEVICE "/dev/audio"
+@@ -85,11 +85,11 @@
+ #ifndef AUDIO_ENCODING_PCM8
+ #define AUDIO_ENCODING_PCM8 AUDIO_ENCODING_LINEAR8
+ #endif
+-#ifndef AUDIO_ENCODING_SLINEAR_LE
+-#define AUDIO_ENCODING_SLINEAR_LE AUDIO_ENCODING_PCM16
++#ifndef AUDIO_ENCODING_SLINEAR
++#define AUDIO_ENCODING_SLINEAR AUDIO_ENCODING_PCM16
+ #endif
+-#ifndef AUDIO_ENCODING_ULINEAR_LE
+-#define AUDIO_ENCODING_ULINEAR_LE AUDIO_ENCODING_PCM8
++#ifndef AUDIO_ENCODING_ULINEAR
++#define AUDIO_ENCODING_ULINEAR AUDIO_ENCODING_PCM8
+ #endif
+
+ /* Compatibility defines, for old *BSD systems */
+@@ -262,7 +262,7 @@
+ md_mode |= (DMODE_STEREO | DMODE_16BITS);
+ play_precision = 16;
+ play_stereo = 2;
+- play_encoding = AUDIO_ENCODING_SLINEAR_LE;
++ play_encoding = AUDIO_ENCODING_SLINEAR;
+ }
+ #endif
+ }
+@@ -278,7 +278,7 @@
+ #else
+ play_encoding =
+ (play_precision ==
+- 16) ? AUDIO_ENCODING_SLINEAR_LE : AUDIO_ENCODING_ULINEAR_LE;
++ 16) ? AUDIO_ENCODING_SLINEAR : AUDIO_ENCODING_ULINEAR;
+ #endif
+ }
+