diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-08-08 21:12:43 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-08-08 21:12:43 +0000 |
commit | 75b07e99b6f7ac8d4df660ae1acf935801c07edc (patch) | |
tree | e92d926923fd4d413ab7b52433c8eed30fb51347 | |
parent | 03865857ab5737bc82f102b3091bef54660b80ca (diff) | |
download | rockbox-75b07e99b6f7ac8d4df660ae1acf935801c07edc.tar.gz rockbox-75b07e99b6f7ac8d4df660ae1acf935801c07edc.zip |
Fix speaking of 'Yes' for little endian players and fix a comment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14246 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/talk.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/talk.c b/apps/talk.c index 2327410ad5..ef8c22225c 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -100,7 +100,8 @@ struct voicefile /* file format of our voice file */ | |||
100 | int id1_max; /* number of "normal" clips contained in above index */ | 100 | int id1_max; /* number of "normal" clips contained in above index */ |
101 | int id2_max; /* number of "voice only" clips contained in above index */ | 101 | int id2_max; /* number of "voice only" clips contained in above index */ |
102 | struct clip_entry index[]; /* followed by the index tables */ | 102 | struct clip_entry index[]; /* followed by the index tables */ |
103 | /* and finally the bitswapped mp3 clips, not visible here */ | 103 | /* and finally the mp3 clips, not visible here, bitswapped |
104 | for SH based players */ | ||
104 | }; | 105 | }; |
105 | 106 | ||
106 | struct queue_entry /* one entry of the internal queue */ | 107 | struct queue_entry /* one entry of the internal queue */ |
@@ -188,10 +189,10 @@ static void load_voicefile(void) | |||
188 | got_size = read(filehandle, audiobuf, load_size); | 189 | got_size = read(filehandle, audiobuf, load_size); |
189 | if (got_size != load_size /* failure */) | 190 | if (got_size != load_size /* failure */) |
190 | goto load_err; | 191 | goto load_err; |
191 | 192 | ||
192 | #ifdef ROCKBOX_LITTLE_ENDIAN | 193 | #ifdef ROCKBOX_LITTLE_ENDIAN |
193 | logf("Byte swapping voice file"); | 194 | logf("Byte swapping voice file"); |
194 | structec_convert(audiobuf, "llllll", 1, true); | 195 | structec_convert(audiobuf, "lllll", 1, true); |
195 | #endif | 196 | #endif |
196 | 197 | ||
197 | if (((struct voicefile*)audiobuf)->table /* format check */ | 198 | if (((struct voicefile*)audiobuf)->table /* format check */ |