diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 10:50:58 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 10:50:58 +0000 |
commit | bd5c0ad7bb93a661ce284f427faab01513a1e28a (patch) | |
tree | 5700a37c5985937375a9c952dbaca9890afaf565 /apps/codecs/adx.c | |
parent | 341b03a24229f16bba98f88832a07d37b834eb63 (diff) | |
download | rockbox-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/adx.c')
-rw-r--r-- | apps/codecs/adx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c index d85269f999..bf339675c7 100644 --- a/apps/codecs/adx.c +++ b/apps/codecs/adx.c | |||
@@ -83,7 +83,7 @@ next_track: | |||
83 | } | 83 | } |
84 | bufsize = n; | 84 | bufsize = n; |
85 | bufoff = 0; | 85 | bufoff = 0; |
86 | DEBUGF("ADX: read size = %x\n",bufsize); | 86 | DEBUGF("ADX: read size = %lx\n",(unsigned long)bufsize); |
87 | 87 | ||
88 | /* Get file header for starting offset, channel count */ | 88 | /* Get file header for starting offset, channel count */ |
89 | 89 | ||
@@ -92,7 +92,7 @@ next_track: | |||
92 | 92 | ||
93 | /* useful for seeking and reporting current playback position */ | 93 | /* useful for seeking and reporting current playback position */ |
94 | avgbytespersec = ci->id3->frequency * 18 * channels / 32; | 94 | avgbytespersec = ci->id3->frequency * 18 * channels / 32; |
95 | DEBUGF("avgbytespersec=%ld\n",avgbytespersec); | 95 | DEBUGF("avgbytespersec=%ld\n",(unsigned long)avgbytespersec); |
96 | 96 | ||
97 | /* Get loop data */ | 97 | /* Get loop data */ |
98 | 98 | ||
@@ -232,14 +232,14 @@ next_track: | |||
232 | ci->seek_buffer(bufoff); | 232 | ci->seek_buffer(bufoff); |
233 | buf = ci->request_buffer(&n, ci->filesize-bufoff); | 233 | buf = ci->request_buffer(&n, ci->filesize-bufoff); |
234 | bufsize = n; | 234 | bufsize = n; |
235 | DEBUGF("ADX: read size = %x\n",bufsize); | 235 | DEBUGF("ADX: read size = %lx\n",(unsigned long)bufsize); |
236 | if ((off_t)bufsize < channels*18) { | 236 | if ((off_t)bufsize < channels*18) { |
237 | /* if we can't get a full frame, just request a single | 237 | /* if we can't get a full frame, just request a single |
238 | frame (should be able to fit it in the guard buffer) */ | 238 | frame (should be able to fit it in the guard buffer) */ |
239 | DEBUGF("ADX: requesting single frame at %lx\n",bufoff); | 239 | DEBUGF("ADX: requesting single frame at %lx\n",bufoff); |
240 | buf = ci->request_buffer(&n, channels*18); | 240 | buf = ci->request_buffer(&n, channels*18); |
241 | bufsize=n; | 241 | bufsize=n; |
242 | DEBUGF("ADX: read size = %x\n",bufsize); | 242 | DEBUGF("ADX: read size = %lx\n",(unsigned long)bufsize); |
243 | } | 243 | } |
244 | if (!buf) { | 244 | if (!buf) { |
245 | DEBUGF("ADX: couldn't get buffer at %lx size %lx\n", | 245 | DEBUGF("ADX: couldn't get buffer at %lx size %lx\n", |