summaryrefslogtreecommitdiff
path: root/apps/codecs/wav.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-17 10:50:58 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-17 10:50:58 +0000
commitbd5c0ad7bb93a661ce284f427faab01513a1e28a (patch)
tree5700a37c5985937375a9c952dbaca9890afaf565 /apps/codecs/wav.c
parent341b03a24229f16bba98f88832a07d37b834eb63 (diff)
downloadrockbox-bd5c0ad7bb93a661ce284f427faab01513a1e28a.tar.gz
rockbox-bd5c0ad7bb93a661ce284f427faab01513a1e28a.zip
Cast some more to keep both 32 bit and 64 bit simulator platforms happy.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12819 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wav.c')
-rw-r--r--apps/codecs/wav.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index f45953a118..ae29bdedc7 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -276,7 +276,8 @@ next_track:
276 i = (buf[4]|(buf[5]<<8)|(buf[6]<<16)|(buf[7]<<24)); 276 i = (buf[4]|(buf[5]<<8)|(buf[6]<<16)|(buf[7]<<24));
277 if (memcmp(buf, "fmt ", 4) == 0) { 277 if (memcmp(buf, "fmt ", 4) == 0) {
278 if (i < 16) { 278 if (i < 16) {
279 DEBUGF("CODEC_ERROR: 'fmt ' chunk size=%lu < 16\n", i); 279 DEBUGF("CODEC_ERROR: 'fmt ' chunk size=%lu < 16\n",
280 (unsigned long)i);
280 i = CODEC_ERROR; 281 i = CODEC_ERROR;
281 goto done; 282 goto done;
282 } 283 }
@@ -298,7 +299,7 @@ next_track:
298 * we'll see later if we can't decode it */ 299 * we'll see later if we can't decode it */
299 DEBUGF("CODEC_WARNING: non-PCM WAVE (formattag=0x%x) " 300 DEBUGF("CODEC_WARNING: non-PCM WAVE (formattag=0x%x) "
300 "doesn't have ext. fmt descr (chunksize=%ld<18).\n", 301 "doesn't have ext. fmt descr (chunksize=%ld<18).\n",
301 formattag, i); 302 formattag, (long)i);
302 } 303 }
303 size = buf[24]|(buf[25]<<8); 304 size = buf[24]|(buf[25]<<8);
304 if (formattag == WAVE_FORMAT_DVI_ADPCM) { 305 if (formattag == WAVE_FORMAT_DVI_ADPCM) {
@@ -335,7 +336,7 @@ next_track:
335 totalsamples = (buf[8]|(buf[9]<<8)|(buf[10]<<16)|(buf[11]<<24)); 336 totalsamples = (buf[8]|(buf[9]<<8)|(buf[10]<<16)|(buf[11]<<24));
336 } else { 337 } else {
337 DEBUGF("unknown WAVE chunk: '%c%c%c%c', size=%lu\n", 338 DEBUGF("unknown WAVE chunk: '%c%c%c%c', size=%lu\n",
338 buf[0], buf[1], buf[2], buf[3], i); 339 buf[0], buf[1], buf[2], buf[3], (unsigned long)i);
339 } 340 }
340 341
341 /* go to next chunk (even chunk sizes must be padded) */ 342 /* go to next chunk (even chunk sizes must be padded) */