diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-08-06 18:39:04 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-08-06 18:39:04 +0000 |
commit | 97bafd66db8a77c34679289f2c8b8f2144a23057 (patch) | |
tree | 4b5cd7fb2340b66432624450d175cea366e79837 /apps/talk.c | |
parent | d96bc50623b9e8374c6de05298c68d751b44e086 (diff) | |
download | rockbox-97bafd66db8a77c34679289f2c8b8f2144a23057.tar.gz rockbox-97bafd66db8a77c34679289f2c8b8f2144a23057.zip |
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
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 19 |
1 files changed, 0 insertions, 19 deletions
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) | |||
220 | structec_convert(&p_voicefile->index[i], "ll", 1, true); | 220 | structec_convert(&p_voicefile->index[i], "ll", 1, true); |
221 | #endif | 221 | #endif |
222 | 222 | ||
223 | /* Do a bitswap as necessary. */ | ||
224 | #if CONFIG_CODEC == SWCODEC | ||
225 | logf("Bitswapping voice file."); | ||
226 | cpu_boost(true); | ||
227 | buf = (unsigned char *)(&p_voicefile->index) + | ||
228 | (p_voicefile->id1_max + p_voicefile->id2_max) * sizeof(struct clip_entry); | ||
229 | length = file_size - (buf - (unsigned char *) p_voicefile); | ||
230 | |||
231 | for (i = 0; i < length; i++) | ||
232 | { | ||
233 | temp = buf[i]; | ||
234 | temp = ((temp >> 4) & 0x0f) | ((temp & 0x0f) << 4); | ||
235 | temp = ((temp >> 2) & 0x33) | ((temp & 0x33) << 2); | ||
236 | buf[i] = ((temp >> 1) & 0x55) | ((temp & 0x55) << 1); | ||
237 | } | ||
238 | cpu_boost(false); | ||
239 | |||
240 | #endif | ||
241 | |||
242 | #ifdef HAVE_MMC | 223 | #ifdef HAVE_MMC |
243 | /* load the index table, now that we know its size from the header */ | 224 | /* load the index table, now that we know its size from the header */ |
244 | load_size = (p_voicefile->id1_max + p_voicefile->id2_max) | 225 | load_size = (p_voicefile->id1_max + p_voicefile->id2_max) |