summaryrefslogtreecommitdiffstats
path: root/tools/voicefont.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-03 23:27:13 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-03 23:28:34 +0200
commit905f920dc9aaed5ad64e2472d080ce1182b980d9 (patch)
tree43aa147bcd3021aa6cad15782443b4db269e49ab /tools/voicefont.c
parent9ca9b657e4f1d9481cc795422d74274abf9d41f1 (diff)
downloadrockbox-905f920dc9aaed5ad64e2472d080ce1182b980d9.tar.gz
rockbox-905f920dc9aaed5ad64e2472d080ce1182b980d9.tar.bz2
rockbox-905f920dc9aaed5ad64e2472d080ce1182b980d9.zip
Shorten voicefont progress output a bit.
Change-Id: I07a85af75acd9b73aabff80feb5226abce83b313
Diffstat (limited to 'tools/voicefont.c')
-rw-r--r--tools/voicefont.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/voicefont.c b/tools/voicefont.c
index 13ce4bfca2..df2577b455 100644
--- a/tools/voicefont.c
+++ b/tools/voicefont.c
@@ -74,9 +74,9 @@ int BitswapAudio (unsigned char* pDest, unsigned char* pSrc, size_t len)
int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
{
-
+
int i,j;
-
+
/* two tables, one for normal strings, one for voice-only (>0x8000) */
static char names[1000][80]; /* worst-case space */
char name[80]; /* one string ID */
@@ -96,7 +96,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
int target_id;
int do_bitswap_audio = 0;
-
+
/* We bitswap the voice file only SH based archos players, target IDs
equal to or lower than 8. See the target_id line for each target in
configure */
@@ -129,7 +129,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
{
if (voiceonly[i] == 1)
count_voiceonly++;
-
+
pos[i] = ftell(output);
sprintf(mp3filename1, "%s%s.mp3", filedir, names[i]);
sprintf(mp3filename2, "%s%s.wav.mp3", filedir, names[i]);
@@ -146,7 +146,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
continue;
}
}
- printf("processing %s\n", mp3filename);
+ printf("processing %s", mp3filename);
size[i] = fread(buffer, 1, sizeof(buffer), pMp3File);
fclose(pMp3File);
@@ -154,7 +154,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
BitswapAudio(buffer, buffer, size[i]);
fwrite(buffer, 1, size[i], output);
- printf("%d %s %d\n", i, names[i], size[i]); /* debug */
+ printf(": %d %s %d\n", i, names[i], size[i]); /* debug */
} /* for i */