summaryrefslogtreecommitdiffstats
path: root/apps/codecs/adx.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-17 09:54:28 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-17 09:54:28 +0000
commitf68362ad6ffef77261e2f64cedc08a023c721ae7 (patch)
tree455e19964b6efb605374ea192b97d8eed0307c97 /apps/codecs/adx.c
parent75e1fd718f4d354afbee4cf5251e03d5101c0daf (diff)
downloadrockbox-f68362ad6ffef77261e2f64cedc08a023c721ae7.tar.gz
rockbox-f68362ad6ffef77261e2f64cedc08a023c721ae7.tar.bz2
rockbox-f68362ad6ffef77261e2f64cedc08a023c721ae7.zip
Fix simulator builds, and some debugf() format strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12817 a1c6a512-1295-4272-9138-f99709370657
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:
/* useful for seeking and reporting current playback position */
avgbytespersec = ci->id3->frequency * 18 * channels / 32;
- DEBUGF("avgbytespersec=%d\n",avgbytespersec);
-
+ DEBUGF("avgbytespersec=%ld\n",avgbytespersec);
+
/* Get loop data */
looping = 0; start_adr = 0; end_adr = 0;
@@ -146,14 +146,14 @@ next_track:
}
if (looping) {
- DEBUGF("ADX: looped, start: %x end: %x\n",start_adr,end_adr);
+ DEBUGF("ADX: looped, start: %lx end: %lx\n",start_adr,end_adr);
} else {
DEBUGF("ADX: not looped\n");
}
/* advance to first frame */
/*ci->seek_buffer(chanstart);*/
- DEBUGF("ADX: first frame at %x\n",chanstart);
+ DEBUGF("ADX: first frame at %lx\n",chanstart);
bufoff = chanstart;
/* setup pcm buffer format */
@@ -205,7 +205,7 @@ next_track:
if (ci->seek_time) {
uint32_t newpos;
- DEBUGF("ADX: seek to %dms\n",ci->seek_time);
+ DEBUGF("ADX: seek to %ldms\n",ci->seek_time);
endofstream = 0;
loop_count = 0;
@@ -227,7 +227,7 @@ next_track:
/* dance with the devil in the pale moonlight */
if ((bufoff > ci->curpos + (off_t)bufsize - channels*18) ||
bufoff < ci->curpos) {
- DEBUGF("ADX: requesting another buffer at %x size %x\n",
+ DEBUGF("ADX: requesting another buffer at %lx size %lx\n",
bufoff,ci->filesize-bufoff);
ci->seek_buffer(bufoff);
buf = ci->request_buffer(&n, ci->filesize-bufoff);
@@ -236,13 +236,13 @@ next_track:
if ((off_t)bufsize < channels*18) {
/* if we can't get a full frame, just request a single
frame (should be able to fit it in the guard buffer) */
- DEBUGF("ADX: requesting single frame at %x\n",bufoff);
+ DEBUGF("ADX: requesting single frame at %lx\n",bufoff);
buf = ci->request_buffer(&n, channels*18);
bufsize=n;
DEBUGF("ADX: read size = %x\n",bufsize);
}
if (!buf) {
- DEBUGF("ADX: couldn't get buffer at %x size %x\n",
+ DEBUGF("ADX: couldn't get buffer at %lx size %lx\n",
bufoff,ci->filesize-bufoff);
return CODEC_ERROR;
}