From c0fc2054c2e17c33017f052ffdf70ad4eb0f2a7e Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Sat, 13 Aug 2005 08:13:32 +0000 Subject: Show VBR info in the ID3 info screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7314 a1c6a512-1295-4272-9138-f99709370657 --- apps/lang/english.lang | 6 ++++++ apps/screens.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/lang/english.lang b/apps/lang/english.lang index a11da03..dc1137c 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -3256,3 +3256,9 @@ desc: in browse_id3 eng: "dB" voice "" new: + +id: LANG_ID3_VBR +desc: in browse_id3 +eng: " (VBR)" +voice "" +new: diff --git a/apps/screens.c b/apps/screens.c index 1cbda99..e259c03 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -1308,7 +1308,7 @@ int draw_id3_item(int line, int top, int header, const char* body) bool browse_id3(void) { - char buf[32]; + char buf[64]; const struct mp3entry* id3 = audio_current_track(); #if defined(HAVE_LCD_BITMAP) const int y_margin = lcd_getymargin(); @@ -1387,7 +1387,8 @@ bool browse_id3(void) playlist_amount()); line = draw_id3_item(line, top, LANG_ID3_PLAYLIST, buf); - snprintf(buf, sizeof(buf), "%d kbps", id3->bitrate); + snprintf(buf, sizeof(buf), "%d kbps%s", id3->bitrate, + id3->vbr ? str(LANG_ID3_VBR) : (const unsigned char*) ""); line = draw_id3_item(line, top, LANG_ID3_BITRATE, buf); snprintf(buf, sizeof(buf), "%d Hz", id3->frequency); -- cgit v1.1