This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11178 - Bookmarks can store optional tokens w/o breaking backward compatibility - Add pitch and timestretch
Attached to Project:
Rockbox
Opened by Jeffrey Goode (Blue_Dude) - Tuesday, 06 April 2010, 03:33 GMT+2
Last edited by Jeffrey Goode (Blue_Dude) - Saturday, 10 April 2010, 23:18 GMT+2
Opened by Jeffrey Goode (Blue_Dude) - Tuesday, 06 April 2010, 03:33 GMT+2
Last edited by Jeffrey Goode (Blue_Dude) - Saturday, 10 April 2010, 23:18 GMT+2
|
DetailsAdded capability to parse bookmarks that may contain optional tokens. Can also parse any version of bookmark so that backward compatibility is always maintained (mix and match at will).
As a demo (and to add as a permanent feature), this patch adds pitch and timestretch tokens to bookmarks and applies their settings when played back. |
This task depends upon
Closed by Jeffrey Goode (Blue_Dude)
Saturday, 10 April 2010, 23:18 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r25576
Saturday, 10 April 2010, 23:18 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r25576
Synced to r25504. Retains new pitchscreen tokens, but eliminates deprecated token in old bookmark format.
Removes all flags except for optional tokens. Cleaner code.
I have not tried out the patch (can't comple right now) but I don't like the cryptic names F_PIT_RAT and F_TIM_STR. We're not developing a CPU here! :-)
The flag names are a holdover from a much larger list. I'll make them more human friendly.
Friendlier tags. Pitch and speed are preset to 100% (not current values) when playing a bookmark and the bookmark doesn't have pitch and speed values.
Why do I always read "TIMESTR" as "time string"? ;-)
Code cleanup. "TIMESTR" is now "SPEED" ;-) Some variables renamed for clarity. Changed default behavior for legacy bookmarks back to *not* changing speed and pitch since that info is not specifically present. Changed the new bookmark format a bit: the id header string "bmark;" wasn't really needed; any non-digit would do. Now there's just a header character ">" to identify the new format.