summaryrefslogtreecommitdiffstats
path: root/apps/codecs/wav.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-10-06 19:27:43 +0000
committerDave Chapman <dave@dchapman.com>2005-10-06 19:27:43 +0000
commit9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c (patch)
tree1d0bc7970de2cd2f4fa365614f84f12517ad1b5f /apps/codecs/wav.c
parent1c3a83c44e6dd18990d813c2f12e83bab67f313a (diff)
downloadrockbox-9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c.tar.gz
rockbox-9e19c95d8efc78a22a32b4a77f9c4a0b4e64125c.zip
Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wav.c')
-rw-r--r--apps/codecs/wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index 36076caf25..2806409dd5 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -482,7 +482,7 @@ enum codec_status codec_start(struct codec_api* api)
else if (bitspersample > 8) {
/* Byte-swap data. */
for (i=0;i<n/2;i++) {
- int16_samples[i]=(int16_t)SWAB16(wavbuf[i]);
+ int16_samples[i]=(int16_t)letoh16(wavbuf[i]);
}
wavbufsize = n;
}