forked from len0rd/rockbox
Don't use function in a function
It is not supported by clang
This commit is contained in:
parent
65bb8e4452
commit
06c8ab852b
1 changed files with 28 additions and 28 deletions
|
@ -2082,17 +2082,8 @@ static bool init_mp3_encoder_engine(int sample_rate,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
STATICIRAM void to_mono_mm(void) ICODE_ATTR;
|
static inline void to_mono(uint16_t **samp)
|
||||||
STATICIRAM void to_mono_mm(void)
|
|
||||||
{
|
{
|
||||||
/* |llllllllllllllll|rrrrrrrrrrrrrrrr| =>
|
|
||||||
* |mmmmmmmmmmmmmmmm|mmmmmmmmmmmmmmmm|
|
|
||||||
*/
|
|
||||||
uint16_t *samp = &mfbuf[2*512];
|
|
||||||
uint16_t *samp_end = samp + 2*samp_per_frame;
|
|
||||||
|
|
||||||
inline void to_mono(uint16_t **samp)
|
|
||||||
{
|
|
||||||
int16_t l = **samp;
|
int16_t l = **samp;
|
||||||
int16_t r = *(*samp+1);
|
int16_t r = *(*samp+1);
|
||||||
int32_t m;
|
int32_t m;
|
||||||
|
@ -2117,7 +2108,16 @@ STATICIRAM void to_mono_mm(void)
|
||||||
}
|
}
|
||||||
*(*samp)++ = (uint16_t)m;
|
*(*samp)++ = (uint16_t)m;
|
||||||
*(*samp)++ = (uint16_t)m;
|
*(*samp)++ = (uint16_t)m;
|
||||||
} /* to_mono */
|
} /* to_mono */
|
||||||
|
|
||||||
|
STATICIRAM void to_mono_mm(void) ICODE_ATTR;
|
||||||
|
STATICIRAM void to_mono_mm(void)
|
||||||
|
{
|
||||||
|
/* |llllllllllllllll|rrrrrrrrrrrrrrrr| =>
|
||||||
|
* |mmmmmmmmmmmmmmmm|mmmmmmmmmmmmmmmm|
|
||||||
|
*/
|
||||||
|
uint16_t *samp = &mfbuf[2*512];
|
||||||
|
uint16_t *samp_end = samp + 2*samp_per_frame;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue