From 882432d09892b66e03db3508e5fb472e965d2663 Mon Sep 17 00:00:00 2001 From: jethead71 Date: Thu, 23 Jul 2009 11:27:09 +0000 Subject: [PATCH] Commit FS#10458 by Christopher Williams - Fix incorrect AIFF and WAV encoding while recording in mono. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22014 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/aiff_enc.c | 2 +- apps/codecs/wav_enc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/codecs/aiff_enc.c b/apps/codecs/aiff_enc.c index 094ea5a00..87358f3df 100644 --- a/apps/codecs/aiff_enc.c +++ b/apps/codecs/aiff_enc.c @@ -262,7 +262,7 @@ static inline void sample_to_mono(uint32_t **src, uint32_t **dst) lr2 >>= 1; break; } - *(*dst)++ = swap_odd_even_be32((lr1 << 16) | (uint16_t)lr2); + *(*dst)++ = htobe32((lr1 << 16) | (uint16_t)lr2); } /* sample_to_mono */ STATICIRAM void chunk_to_aiff_format(uint32_t *src, uint32_t *dst) ICODE_ATTR; diff --git a/apps/codecs/wav_enc.c b/apps/codecs/wav_enc.c index 75536d1b1..38230c846 100644 --- a/apps/codecs/wav_enc.c +++ b/apps/codecs/wav_enc.c @@ -251,7 +251,7 @@ static inline void sample_to_mono(uint32_t **src, uint32_t **dst) lr2 >>= 1; break; } - *(*dst)++ = swap_odd_even_be32((lr1 << 16) | (uint16_t)lr2); + *(*dst)++ = htole32((lr2 << 16) | (uint16_t)lr1); } /* sample_to_mono */ STATICIRAM void chunk_to_wav_format(uint32_t *src, uint32_t *dst) ICODE_ATTR; -- 2.11.4.GIT