summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libmusepack/mpc_decoder.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-10 20:35:04 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-09-10 20:35:04 +0000
commitf163b405c0a6fcf069e79d099ac7d7d64adc4471 (patch)
tree77479775fdc3e8be42efba6f3a03d381bcc47279 /apps/codecs/libmusepack/mpc_decoder.c
parentd4249affc41a0483ff9800b0b197e0fbeb5757fc (diff)
downloadrockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.tar.gz
rockbox-f163b405c0a6fcf069e79d099ac7d7d64adc4471.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libmusepack/mpc_decoder.c b/apps/codecs/libmusepack/mpc_decoder.c
index eb8916f343..3bfc4cc7fc 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)