From a0803059de040a01f5c7c8dc15469b5fac96bea5 Mon Sep 17 00:00:00 2001 From: naddy Date: Fri, 16 Mar 2001 20:39:13 +0000 Subject: [PATCH] Fix wave-file output on big-endian machines. From NetBSD, pointed to by brad@. --- audio/libao/patches/patch-src_ao_wav_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 audio/libao/patches/patch-src_ao_wav_c diff --git a/audio/libao/patches/patch-src_ao_wav_c b/audio/libao/patches/patch-src_ao_wav_c new file mode 100644 index 00000000000..6785d940273 --- /dev/null +++ b/audio/libao/patches/patch-src_ao_wav_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_ao_wav_c,v 1.1 2001/03/16 20:39:13 naddy Exp $ +--- src/ao_wav.c.orig Fri Mar 16 20:57:28 2001 ++++ src/ao_wav.c Fri Mar 16 20:58:30 2001 +@@ -221,7 +221,7 @@ static void ao_wav_play(ao_internal_t *s + + /* 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]; + }