diff options
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", |