From 0f0bccfe171998cfb8394373e6c14e2dc06bebc7 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 16 Mar 2001 10:10:34 +0000 Subject: Fix wave-file output on big-endian machines. --- audio/libao/files/patch-sum | 3 ++- audio/libao/patches/patch-ad | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 audio/libao/patches/patch-ad (limited to 'audio/libao') diff --git a/audio/libao/files/patch-sum b/audio/libao/files/patch-sum index 7d5ef12b91c..b64bfb0b987 100644 --- a/audio/libao/files/patch-sum +++ b/audio/libao/files/patch-sum @@ -1,5 +1,6 @@ -$NetBSD: patch-sum,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $ +$NetBSD: patch-sum,v 1.2 2001/03/16 10:10:34 wiz Exp $ SHA1 (patch-aa) = 169111a20ebd34ed470e9c54a153f05a60e9495f SHA1 (patch-ab) = edd739acc4f5460e8bcc56cb05d11f1e5e442bda SHA1 (patch-ac) = c9c77903ff355b7dcef5476d3779234c4bd82e42 +SHA1 (patch-ad) = 6290188d44f646c1ec7e2803cf482ae9a9fceb7d 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]; + } -- cgit v1.2.3