summaryrefslogtreecommitdiff
path: root/audio/libao/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-03-16 10:10:34 +0000
committerwiz <wiz@pkgsrc.org>2001-03-16 10:10:34 +0000
commit0f0bccfe171998cfb8394373e6c14e2dc06bebc7 (patch)
tree96deb9f141c3b2ad54e5f81ab3d323bfd13b882c /audio/libao/patches
parent57d7d5a74af559f366fa2997afef0b291927e730 (diff)
downloadpkgsrc-0f0bccfe171998cfb8394373e6c14e2dc06bebc7.tar.gz
Fix wave-file output on big-endian machines.
Diffstat (limited to 'audio/libao/patches')
-rw-r--r--audio/libao/patches/patch-ad13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/libao/patches/patch-ad b/audio/libao/patches/patch-ad
new file mode 100644
index 00000000000..b96598bacc0
--- /dev/null
+++ b/audio/libao/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2001/03/16 10:10:35 wiz Exp $
+
+--- src/ao_wav.c.orig Sat Feb 24 02:31:46 2001
++++ src/ao_wav.c
+@@ -221,7 +221,7 @@
+
+ /* Swap the bytes into the swap buffer (so we don't
+ mess up the output_samples buffer) */
+- for(i = 0; i < num_bytes/2; i+=2) {
++ for(i = 0; i < num_bytes; i+=2) {
+ s->swap_buffer[i] = ((char *) output_samples)[i+1];
+ s->swap_buffer[i+1] = ((char *) output_samples)[i];
+ }