From b2380b535e99b4bc49d91bb228598f85362446ca Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 3 Jun 2012 16:13:04 +0200 Subject: voicefont: make format version a parameter. Make hardcoded format version a parameter to allow adjusting depending on the installed Rockbox version. Rockbox Utility will read the version from the installed version. Since the command line voicefont tool is only intended for use in the current tree it uses a fixed version. Change-Id: I1ec935d47c71961e93b3c6bc6c5d816cd9fc83ff --- tools/voicefont.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/voicefont.c') diff --git a/tools/voicefont.c b/tools/voicefont.c index 3b67e97436..4d1363b1bc 100644 --- a/tools/voicefont.c +++ b/tools/voicefont.c @@ -70,7 +70,7 @@ int BitswapAudio (unsigned char* pDest, unsigned char* pSrc, size_t len) return 0; } -int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output) +int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output, unsigned int version) { int i,j; @@ -159,7 +159,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output) /* Create the file format: */ /* 1st 32 bit value in the file is the version number */ - value = UINT_TO_BE(400); /* 4.00 */ + value = UINT_TO_BE(version); fwrite(&value, sizeof(value), 1, output); /* 2nd 32 bit value in the file is the id number for the target @@ -243,7 +243,7 @@ int main (int argc, char** argv) return -2; } - voicefont(ids, atoi(argv[2]),argv[3],output); + voicefont(ids, atoi(argv[2]),argv[3],output, 400); return 0; } #endif -- cgit v1.2.3