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:
parent
ecd4d8870e
commit
c77eae99a3
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue