diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
commit | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch) | |
tree | 4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/wavplay.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) | |
download | rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.zip |
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/wavplay.c')
-rw-r--r-- | apps/plugins/wavplay.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/plugins/wavplay.c b/apps/plugins/wavplay.c index cbd4dfbeda..887c5cdd55 100644 --- a/apps/plugins/wavplay.c +++ b/apps/plugins/wavplay.c | |||
@@ -3454,7 +3454,6 @@ void cleanup(void *fd) | |||
3454 | 3454 | ||
3455 | int play_file(char* filename) | 3455 | int play_file(char* filename) |
3456 | { | 3456 | { |
3457 | char buf[32]; | ||
3458 | int button; | 3457 | int button; |
3459 | int fd; | 3458 | int fd; |
3460 | int wanted, got; | 3459 | int wanted, got; |
@@ -3540,11 +3539,9 @@ int play_file(char* filename) | |||
3540 | time = bytes / (samplerate * 2 * channels); | 3539 | time = bytes / (samplerate * 2 * channels); |
3541 | 3540 | ||
3542 | rb->lcd_puts(0, 0, "Playing WAV file"); | 3541 | rb->lcd_puts(0, 0, "Playing WAV file"); |
3543 | rb->snprintf(buf, sizeof(buf), "%dHz %s", samplerate, | 3542 | rb->lcd_putsf(0, 1, "%dHz %s", samplerate, |
3544 | (channels == 1) ? "mono" : "stereo"); | 3543 | (channels == 1) ? "mono" : "stereo"); |
3545 | rb->lcd_puts(0, 1, buf); | 3544 | rb->lcd_putsf(0, 2, "Length: %d:%02d", time / 60, time % 60); |
3546 | rb->snprintf(buf, sizeof(buf), "Length: %d:%02d", time / 60, time % 60); | ||
3547 | rb->lcd_puts(0, 2, buf); | ||
3548 | rb->lcd_update(); | 3545 | rb->lcd_update(); |
3549 | 3546 | ||
3550 | rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */ | 3547 | rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */ |