diff options
-rw-r--r-- | tools/voicefont.c | 12 |
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 | ||
75 | int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output) | 75 | int 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 | ||