diff options
author | wiz <wiz@pkgsrc.org> | 2001-03-16 10:10:34 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2001-03-16 10:10:34 +0000 |
commit | 0f0bccfe171998cfb8394373e6c14e2dc06bebc7 (patch) | |
tree | 96deb9f141c3b2ad54e5f81ab3d323bfd13b882c /audio | |
parent | 57d7d5a74af559f366fa2997afef0b291927e730 (diff) | |
download | pkgsrc-0f0bccfe171998cfb8394373e6c14e2dc06bebc7.tar.gz |
Fix wave-file output on big-endian machines.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/libao/files/patch-sum | 3 | ||||
-rw-r--r-- | audio/libao/patches/patch-ad | 13 |
2 files changed, 15 insertions, 1 deletions
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]; + } |