diff options
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 */ |