This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12100 - Track length in seconds
Attached to Project:
Rockbox
Opened by dave t (sockbox) - Friday, 06 May 2011, 00:40 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Sunday, 05 June 2011, 13:06 GMT+2
Opened by dave t (sockbox) - Friday, 06 May 2011, 00:40 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Sunday, 05 June 2011, 13:06 GMT+2
|
DetailsThis patch displays the track length in seconds using a custom WPS tag, %pz.
The idea behind this tag is to use the track length in a conditional statement. What I want to do is to determine the length of a song and change the font size to accommodate for the additional text. This will be useful when handling smaller resolution players such as the Sansa Clip. ie. I want to find out if a track is longer than 10 minutes. %?if(%pz, <, 600)<%Vd(a)|%Vd(b)> Viewports a & b will define the font output. The patch works if you just want to display the track length in seconds (%pz). But I cannot get it to work correctly with any values in the conditional statement above. The value does not seem to be interpreted as an integer. |
This task depends upon
Closed by Dominik Riebeling (bluebrother)
Sunday, 05 June 2011, 13:06 GMT+2
Reason for closing: Rejected
Additional comments about closing: no real name
Sunday, 05 June 2011, 13:06 GMT+2
Reason for closing: Rejected
Additional comments about closing: no real name
I'm hoping for some input into how to make it work correctly.