summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2002-05-15 21:59:37 +0000
committerDave Chapman <dave@dchapman.com>2002-05-15 21:59:37 +0000
commiteae6296b5673705bf49c119b6fa4b456a6909a3b (patch)
tree22a2393d9d07f13e1a84e3504ef8b9dedcfdcd85 /uisimulator
parent379a39b4403c243ec3de9d0412ed123321fc5124 (diff)
downloadrockbox-eae6296b5673705bf49c119b6fa4b456a6909a3b.tar.gz
rockbox-eae6296b5673705bf49c119b6fa4b456a6909a3b.zip
removed unused function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@583 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/mpegplay.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/uisimulator/common/mpegplay.c b/uisimulator/common/mpegplay.c
index 76e9655be6..09799ad176 100644
--- a/uisimulator/common/mpegplay.c
+++ b/uisimulator/common/mpegplay.c
@@ -117,54 +117,6 @@ signed int dither(mad_fixed_t sample, struct dither *dither)
return output >> scalebits;
}
-/*
- * NAME: pack_pcm()
- * DESCRIPTION: scale and dither MAD output
- */
-static
-void pack_pcm(unsigned char **pcm, unsigned int nsamples,
- mad_fixed_t const *ch1, mad_fixed_t const *ch2)
-{
- register signed int s0, s1;
- static struct dither d0, d1;
-
- if (ch2) { /* stereo */
- while (nsamples--) {
- s0 = scale(*ch1++, &d0);
- s1 = scale(*ch2++, &d1);
-# if SAMPLE_DEPTH == 16
- (*pcm)[0 + 0] = s0 >> 0;
- (*pcm)[0 + 1] = s0 >> 8;
- (*pcm)[2 + 0] = s1 >> 0;
- (*pcm)[2 + 1] = s1 >> 8;
-
- *pcm += 2 * 2;
-# elif SAMPLE_DEPTH == 8
- (*pcm)[0] = s0 ^ 0x80;
- (*pcm)[1] = s1 ^ 0x80;
-
- *pcm += 2;
-# else
-# error "bad SAMPLE_DEPTH"
-# endif
- }
- }
- else { /* mono */
- while (nsamples--) {
- s0 = scale(*ch1++, &d0);
-
-# if SAMPLE_DEPTH == 16
- (*pcm)[0] = s0 >> 0;
- (*pcm)[1] = s0 >> 8;
-
- *pcm += 2;
-# elif SAMPLE_DEPTH == 8
- *(*pcm)++ = s0 ^ 0x80;
-# endif
- }
- }
-}
-
#define INPUT_BUFFER_SIZE (5*8192)
#define OUTPUT_BUFFER_SIZE 8192 /* Must be an integer multiple of 4. */
int mpeg_play(char* fname)