summaryrefslogtreecommitdiffstats
path: root/apps/plugins/wavview.c
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-04-09 22:41:01 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-04-09 22:41:01 +0000
commit3e6ec547160ec80ccadd3e2bf6afe8a36572ea42 (patch)
tree4d4beddf55560bb217ed94e44d57840073d81127 /apps/plugins/wavview.c
parent09877aa4a8bd0fa2982397e4ca9a0c9a9f6113ab (diff)
downloadrockbox-3e6ec547160ec80ccadd3e2bf6afe8a36572ea42.tar.gz
rockbox-3e6ec547160ec80ccadd3e2bf6afe8a36572ea42.tar.bz2
rockbox-3e6ec547160ec80ccadd3e2bf6afe8a36572ea42.zip
Fix yellow from 64bit platform sim
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13088 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wavview.c')
-rw-r--r--apps/plugins/wavview.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/plugins/wavview.c b/apps/plugins/wavview.c
index adc9d2e6da..37c10aca67 100644
--- a/apps/plugins/wavview.c
+++ b/apps/plugins/wavview.c
@@ -174,7 +174,7 @@ static int readwavpeaks(char *filename)
rb->snprintf(tstr,127, "Bits/sample: %d", header.bitspersample);
rb->lcd_puts(0, 3, tstr);
- rb->snprintf(tstr,127, "Samplerate: %ld Hz", header.samplerate);
+ rb->snprintf(tstr,127, "Samplerate: %d Hz", (int)(header.samplerate));
rb->lcd_puts(0, 4, tstr);
seconds = header.datachunksize / header.byterate;
@@ -218,7 +218,7 @@ static int readwavpeaks(char *filename)
}
if(((bytes_read/4)*4) != bytes_read)
{
- rb->splash(HZ*2, "bytes_read/*4 err: %ld",bytes_read);
+ rb->splash(HZ*2, "bytes_read/*4 err: %ld",(long int)bytes_read);
return 1;
}
@@ -281,9 +281,9 @@ static int readwavpeaks(char *filename)
}
/* update progress */
- rb->snprintf(tstr,127, "Searching for peaks... %ld%%",
- total_bytes_read / ((header.datachunksize +
- sizeof(struct wav_header)) / 100));
+ rb->snprintf(tstr,127, "Searching for peaks... %d%%",(int)
+ (total_bytes_read / ((header.datachunksize +
+ sizeof(struct wav_header)) / 100)));
rb->lcd_puts(0, 6, tstr);
rb->lcd_update();
}
@@ -447,12 +447,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void *parameter)
/* zoom out */
if(zoomlevel > 1)
zoomlevel /= 2;
- rb->splash(HZ/2, "ZOOM: %ldx",zoomlevel);
+ rb->splash(HZ/2, "ZOOM: %dx",(int)zoomlevel);
break;
case ACTION_KBD_DOWN:
if(zoomlevel < (mempeakcount / LCD_WIDTH / 2))
zoomlevel *= 2;
- rb->splash(HZ/2, "ZOOM: %ldx",zoomlevel);
+ rb->splash(HZ/2, "ZOOM: %dx",(int)zoomlevel);
break;
case ACTION_KBD_LEFT:
center -= 10 * (mempeakcount / LCD_WIDTH) / zoomlevel;