From 153f906d74eeff933a44fdf038b292d8d543e8f0 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Mon, 13 Feb 2006 19:24:36 +0000 Subject: Start converting codecs to use internal sample format (28 bits + sign, or s3.28 fixed point). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8680 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/mpc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps/codecs/mpc.c') diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c index 25071b9d5d..78d3e80644 100644 --- a/apps/codecs/mpc.c +++ b/apps/codecs/mpc.c @@ -92,15 +92,7 @@ enum codec_status codec_start(struct codec_api *api) ci->configure(CODEC_DSP_ENABLE, (bool *)true); ci->configure(DSP_DITHER, (bool *)false); - - /* NOTE: this _should_ be set to MPC_FIXED_POINT_SCALE_SHIFT, not with - a 1 subtracted. However, doing so yields an output with only half the - amplitude it should have, so currently we use what's here, as it gives - correct level output. */ - ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)(MPC_FIXED_POINT_SCALE_SHIFT - 1)); - /* disable these until we can figure out what's going on. - ci->configure(DSP_SET_CLIP_MAX, (long *)MPC_FIXED_POINT_SCALE); - ci->configure(DSP_SET_CLIP_MIN, (long *)-MPC_FIXED_POINT_SCALE);*/ + ci->configure(DSP_SET_SAMPLE_DEPTH, (long *)(28)); ci->configure(CODEC_SET_FILEBUF_CHUNKSIZE, (long *)(1024*16)); /* Create a decoder instance */ -- cgit v1.2.3