forked from len0rd/rockbox
Added %pr to CUSTOM_WPS to display remaining time in song.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2072 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bd1ddf6d5a
commit
87f53249b2
2 changed files with 9 additions and 1 deletions
|
|
@ -547,6 +547,11 @@ bool display_custom_wps(int x_val, int y_val, bool do_scroll, char *wps_string)
|
||||||
(id3->elapsed + ff_rewind_count) / 60000,
|
(id3->elapsed + ff_rewind_count) / 60000,
|
||||||
(id3->elapsed + ff_rewind_count) % 60000 / 1000);
|
(id3->elapsed + ff_rewind_count) % 60000 / 1000);
|
||||||
break;
|
break;
|
||||||
|
case 'r': /* Remaining Time in Song */
|
||||||
|
snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d",
|
||||||
|
(id3->length - (id3->elapsed + ff_rewind_count)) / 60000,
|
||||||
|
(id3->length - (id3->elapsed + ff_rewind_count)) % 60000 / 1000);
|
||||||
|
break;
|
||||||
case 't': /* Total Time */
|
case 't': /* Total Time */
|
||||||
snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d",
|
snprintf(tmpbuf, sizeof(tmpbuf), "%d:%02d",
|
||||||
id3->length / 60000,
|
id3->length / 60000,
|
||||||
|
|
@ -1019,7 +1024,9 @@ static bool ffwd_rew(int button)
|
||||||
if (!exit)
|
if (!exit)
|
||||||
button = button_get(true);
|
button = button_get(true);
|
||||||
}
|
}
|
||||||
|
#ifdef CUSTOM_WPS
|
||||||
|
refresh_wps(true);
|
||||||
|
#endif
|
||||||
return usb;
|
return usb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ Playlist/Song Info Tags:
|
||||||
%pp : Playlist Position
|
%pp : Playlist Position
|
||||||
%pe : Playlist Total Entries
|
%pe : Playlist Total Entries
|
||||||
%pc : Current Time In Song
|
%pc : Current Time In Song
|
||||||
|
%pr : Remaining Time In Song
|
||||||
%pt : Total Track Time
|
%pt : Total Track Time
|
||||||
Other Tags:
|
Other Tags:
|
||||||
%% : Displays a %
|
%% : Displays a %
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue