Show VBR info in the ID3 info screen.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7314 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2005-08-13 08:13:32 +00:00
parent 501ab1a17f
commit c0fc2054c2
2 changed files with 9 additions and 2 deletions

View file

@ -3256,3 +3256,9 @@ desc: in browse_id3
eng: "dB" eng: "dB"
voice "" voice ""
new: new:
id: LANG_ID3_VBR
desc: in browse_id3
eng: " (VBR)"
voice ""
new:

View file

@ -1308,7 +1308,7 @@ int draw_id3_item(int line, int top, int header, const char* body)
bool browse_id3(void) bool browse_id3(void)
{ {
char buf[32]; char buf[64];
const struct mp3entry* id3 = audio_current_track(); const struct mp3entry* id3 = audio_current_track();
#if defined(HAVE_LCD_BITMAP) #if defined(HAVE_LCD_BITMAP)
const int y_margin = lcd_getymargin(); const int y_margin = lcd_getymargin();
@ -1387,7 +1387,8 @@ bool browse_id3(void)
playlist_amount()); playlist_amount());
line = draw_id3_item(line, top, LANG_ID3_PLAYLIST, buf); 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); line = draw_id3_item(line, top, LANG_ID3_BITRATE, buf);
snprintf(buf, sizeof(buf), "%d Hz", id3->frequency); snprintf(buf, sizeof(buf), "%d Hz", id3->frequency);