From 97bafd66db8a77c34679289f2c8b8f2144a23057 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Mon, 6 Aug 2007 18:39:04 +0000 Subject: We only need to have bit-swapped voice files for the SH based archos targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14220 a1c6a512-1295-4272-9138-f99709370657 --- apps/talk.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'apps/talk.c') diff --git a/apps/talk.c b/apps/talk.c index e1bf6cbc5c..f1158794e8 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -220,25 +220,6 @@ static void load_voicefile(void) structec_convert(&p_voicefile->index[i], "ll", 1, true); #endif - /* Do a bitswap as necessary. */ -#if CONFIG_CODEC == SWCODEC - logf("Bitswapping voice file."); - cpu_boost(true); - buf = (unsigned char *)(&p_voicefile->index) + - (p_voicefile->id1_max + p_voicefile->id2_max) * sizeof(struct clip_entry); - length = file_size - (buf - (unsigned char *) p_voicefile); - - for (i = 0; i < length; i++) - { - temp = buf[i]; - temp = ((temp >> 4) & 0x0f) | ((temp & 0x0f) << 4); - temp = ((temp >> 2) & 0x33) | ((temp & 0x33) << 2); - buf[i] = ((temp >> 1) & 0x55) | ((temp & 0x55) << 1); - } - cpu_boost(false); - -#endif - #ifdef HAVE_MMC /* load the index table, now that we know its size from the header */ load_size = (p_voicefile->id1_max + p_voicefile->id2_max) -- cgit v1.2.3