diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-10 20:35:04 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-09-10 20:35:04 +0000 |
| commit | f163b405c0a6fcf069e79d099ac7d7d64adc4471 (patch) | |
| tree | 77479775fdc3e8be42efba6f3a03d381bcc47279 /apps/codecs/libmusepack/mpc_decoder.c | |
| parent | d4249affc41a0483ff9800b0b197e0fbeb5757fc (diff) | |
| download | rockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.zip rockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.tar.gz rockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.tar.bz2 rockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.tar.xz | |
Fully remove floating point code from libmusepack. Introduce two small const arrays for precalculated scalefactors, correct the integer type of scalefactors to unsigned, migrate some metadata calculations to fixed point. No impact to decoder output.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30497 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libmusepack/mpc_decoder.c')
| -rw-r--r-- | apps/codecs/libmusepack/mpc_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c index eb8916f..3bfc4cc 100644 --- a/apps/codecs/libmusepack/mpc_decoder.c +++ b/apps/codecs/libmusepack/mpc_decoder.c @@ -251,7 +251,7 @@ static void mpc_decoder_setup(mpc_decoder *d) memset(d->Y_L, 0, sizeof(g_Y_L)); memset(d->Y_R, 0, sizeof(g_Y_R)); - mpc_decoder_init_quant(d, 1.0f); + mpc_decoder_init_quant(d, MAKE_MPC_SAMPLE(1.0)); } static void mpc_decoder_set_streaminfo(mpc_decoder *d, mpc_streaminfo *si) |