summaryrefslogtreecommitdiff
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
parent9ca9b657e4f1d9481cc795422d74274abf9d41f1 (diff)
downloadrockbox-905f920dc9aaed5ad64e2472d080ce1182b980d9.tar.gz
rockbox-905f920dc9aaed5ad64e2472d080ce1182b980d9.zip
Shorten voicefont progress output a bit.
Change-Id: I07a85af75acd9b73aabff80feb5226abce83b313
-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)
74 74
75int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output) 75int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
76{ 76{
77 77
78 int i,j; 78 int i,j;
79 79
80 /* two tables, one for normal strings, one for voice-only (>0x8000) */ 80 /* two tables, one for normal strings, one for voice-only (>0x8000) */
81 static char names[1000][80]; /* worst-case space */ 81 static char names[1000][80]; /* worst-case space */
82 char name[80]; /* one string ID */ 82 char name[80]; /* one string ID */
@@ -96,7 +96,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
96 int target_id; 96 int target_id;
97 int do_bitswap_audio = 0; 97 int do_bitswap_audio = 0;
98 98
99 99
100 /* We bitswap the voice file only SH based archos players, target IDs 100 /* We bitswap the voice file only SH based archos players, target IDs
101 equal to or lower than 8. See the target_id line for each target in 101 equal to or lower than 8. See the target_id line for each target in
102 configure */ 102 configure */
@@ -129,7 +129,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
129 { 129 {
130 if (voiceonly[i] == 1) 130 if (voiceonly[i] == 1)
131 count_voiceonly++; 131 count_voiceonly++;
132 132
133 pos[i] = ftell(output); 133 pos[i] = ftell(output);
134 sprintf(mp3filename1, "%s%s.mp3", filedir, names[i]); 134 sprintf(mp3filename1, "%s%s.mp3", filedir, names[i]);
135 sprintf(mp3filename2, "%s%s.wav.mp3", filedir, names[i]); 135 sprintf(mp3filename2, "%s%s.wav.mp3", filedir, names[i]);
@@ -146,7 +146,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
146 continue; 146 continue;
147 } 147 }
148 } 148 }
149 printf("processing %s\n", mp3filename); 149 printf("processing %s", mp3filename);
150 150
151 size[i] = fread(buffer, 1, sizeof(buffer), pMp3File); 151 size[i] = fread(buffer, 1, sizeof(buffer), pMp3File);
152 fclose(pMp3File); 152 fclose(pMp3File);
@@ -154,7 +154,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
154 BitswapAudio(buffer, buffer, size[i]); 154 BitswapAudio(buffer, buffer, size[i]);
155 fwrite(buffer, 1, size[i], output); 155 fwrite(buffer, 1, size[i], output);
156 156
157 printf("%d %s %d\n", i, names[i], size[i]); /* debug */ 157 printf(": %d %s %d\n", i, names[i], size[i]); /* debug */
158 } /* for i */ 158 } /* for i */
159 159
160 160