This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11619 - Restore pitch and speed settings on resume
Attached to Project:
Rockbox
Opened by Frank Gevaerts (fg) - Friday, 10 September 2010, 19:49 GMT+2
Last edited by Frank Gevaerts (fg) - Friday, 10 September 2010, 20:07 GMT+2
Opened by Frank Gevaerts (fg) - Friday, 10 September 2010, 19:49 GMT+2
Last edited by Frank Gevaerts (fg) - Friday, 10 September 2010, 20:07 GMT+2
|
DetailsThis patch should save pitch and speed settings to nvram, and restore them after reboot if needed.
If I read the code correctly, there should be enough room in nvram (and anyway, the way this is done doesn't apply to any targets that actually use real nvram) This code compiles, but apart from that it's completely untested. Of course, since this patch increments the nvram data version, you'll lose resume info the first time you reboot. |
This task depends upon
However, when pitch (and later time stretch) got added, they were not made persistent on purpose.
I fully agree with that reasoning, which is why I didn't make them a setting. They're only restored if playback is resumed from the position it was at at shutdown, which I think still matches the requirements of not being "too" permanent.
Actually, I suspect it might be a good idea to reset pitch and speed when starting a new playlist. That (together with this patch) would provide the most consistent behaviour: pitch and speed belong to the current playlist, *nothing* else. That also fits in nicely with them being stored in bookmarks.
Seems like a good candidate for merging into mainline to me.
That means the ideal logic would be to only reset if pitch/speed haven't been changed since the last time playbacvk was active, which is slightly more tricky.
Is there something special I need to do after upgrading to the new patch? Process was, applied timestretch_v2.diff in reverse to remove it from my tree, make clean, svn update, apply 11610 patch, rebuild.