summaryrefslogtreecommitdiff
path: root/apps/codecs/adx.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/adx.c')
-rw-r--r--apps/codecs/adx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c
index 337e07e721..d85269f999 100644
--- a/apps/codecs/adx.c
+++ b/apps/codecs/adx.c
@@ -92,8 +92,8 @@ 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=%d\n",avgbytespersec); 95 DEBUGF("avgbytespersec=%ld\n",avgbytespersec);
96 96
97 /* Get loop data */ 97 /* Get loop data */
98 98
99 looping = 0; start_adr = 0; end_adr = 0; 99 looping = 0; start_adr = 0; end_adr = 0;
@@ -146,14 +146,14 @@ next_track:
146 } 146 }
147 147
148 if (looping) { 148 if (looping) {
149 DEBUGF("ADX: looped, start: %x end: %x\n",start_adr,end_adr); 149 DEBUGF("ADX: looped, start: %lx end: %lx\n",start_adr,end_adr);
150 } else { 150 } else {
151 DEBUGF("ADX: not looped\n"); 151 DEBUGF("ADX: not looped\n");
152 } 152 }
153 153
154 /* advance to first frame */ 154 /* advance to first frame */
155 /*ci->seek_buffer(chanstart);*/ 155 /*ci->seek_buffer(chanstart);*/
156 DEBUGF("ADX: first frame at %x\n",chanstart); 156 DEBUGF("ADX: first frame at %lx\n",chanstart);
157 bufoff = chanstart; 157 bufoff = chanstart;
158 158
159 /* setup pcm buffer format */ 159 /* setup pcm buffer format */
@@ -205,7 +205,7 @@ next_track:
205 if (ci->seek_time) { 205 if (ci->seek_time) {
206 uint32_t newpos; 206 uint32_t newpos;
207 207
208 DEBUGF("ADX: seek to %dms\n",ci->seek_time); 208 DEBUGF("ADX: seek to %ldms\n",ci->seek_time);
209 209
210 endofstream = 0; 210 endofstream = 0;
211 loop_count = 0; 211 loop_count = 0;
@@ -227,7 +227,7 @@ next_track:
227 /* dance with the devil in the pale moonlight */ 227 /* dance with the devil in the pale moonlight */
228 if ((bufoff > ci->curpos + (off_t)bufsize - channels*18) || 228 if ((bufoff > ci->curpos + (off_t)bufsize - channels*18) ||
229 bufoff < ci->curpos) { 229 bufoff < ci->curpos) {
230 DEBUGF("ADX: requesting another buffer at %x size %x\n", 230 DEBUGF("ADX: requesting another buffer at %lx size %lx\n",
231 bufoff,ci->filesize-bufoff); 231 bufoff,ci->filesize-bufoff);
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);
@@ -236,13 +236,13 @@ next_track:
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 %x\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 = %x\n",bufsize);
243 } 243 }
244 if (!buf) { 244 if (!buf) {
245 DEBUGF("ADX: couldn't get buffer at %x size %x\n", 245 DEBUGF("ADX: couldn't get buffer at %lx size %lx\n",
246 bufoff,ci->filesize-bufoff); 246 bufoff,ci->filesize-bufoff);
247 return CODEC_ERROR; 247 return CODEC_ERROR;
248 } 248 }