1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2009-07-23 11:27:09 +00:00
parent ecd4d8870e
commit c77eae99a3
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ static inline void sample_to_mono(uint32_t **src, uint32_t **dst)
lr2 >>= 1; lr2 >>= 1;
break; break;
} }
*(*dst)++ = swap_odd_even_be32((lr1 << 16) | (uint16_t)lr2); *(*dst)++ = htobe32((lr1 << 16) | (uint16_t)lr2);
} /* sample_to_mono */ } /* sample_to_mono */
STATICIRAM void chunk_to_aiff_format(uint32_t *src, uint32_t *dst) ICODE_ATTR; STATICIRAM void chunk_to_aiff_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;

View file

@ -251,7 +251,7 @@ static inline void sample_to_mono(uint32_t **src, uint32_t **dst)
lr2 >>= 1; lr2 >>= 1;
break; break;
} }
*(*dst)++ = swap_odd_even_be32((lr1 << 16) | (uint16_t)lr2); *(*dst)++ = htole32((lr2 << 16) | (uint16_t)lr1);
} /* sample_to_mono */ } /* sample_to_mono */
STATICIRAM void chunk_to_wav_format(uint32_t *src, uint32_t *dst) ICODE_ATTR; STATICIRAM void chunk_to_wav_format(uint32_t *src, uint32_t *dst) ICODE_ATTR;