Rockbox

Tasklist

FS#8865 - timer plugin

Attached to Project: Rockbox
Opened by x (vmh) - Thursday, 10 April 2008, 20:40 GMT
Last edited by Dominik Riebeling (bluebrother) - Saturday, 04 June 2011, 21:39 GMT
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This is a timer plugin. After the set time the plugin stops the music and plays a tone until the user presses a button to stop the alarm.

Most of the code is copied from battery_bench.c and test_sampr.c
This task depends upon

Closed by  Dominik Riebeling (bluebrother)
Saturday, 04 June 2011, 21:39 GMT
Reason for closing:  Out of Date
Comment by alex wallis (alexwallis646) - Friday, 11 April 2008, 03:04 GMT
Hi. Just wondering what practical reasons would a person want to use this timer for? I mean if you need it you have the sleep timer for example. Maybe i'm just being dim, but I can't see any real reason for using it. apart from maybe if you work out in a jim, and even then they usually provide there own music don't they? plus if the player is an hd player, i should think it wouldn't be good to be moved around like it would in a jim.
Comment by Linus Nielsen Feltzing (linusnielsen) - Friday, 11 April 2008, 06:58 GMT
I can think of a few more uses, like a kitchen timer (egg boiling, cake baking etc), not only in the gym.
Comment by Linus Nielsen Feltzing (linusnielsen) - Friday, 11 April 2008, 07:28 GMT
I'm not sure why you use the sleep timer for this. Wouldn't it be easier to just count ticks in the TSR thread?
Comment by PaulJam (PaulJam) - Friday, 11 April 2008, 08:42 GMT
I think it is a good idea to use the sleep timer. This way you see the remaining time in the WPS (if the WPS supports that).
Comment by Linus Nielsen Feltzing (linusnielsen) - Friday, 11 April 2008, 10:06 GMT
I think it's a bad idea, since the sleep timer is totally unrelated.
Comment by x (vmh) - Friday, 11 April 2008, 18:20 GMT
@alexwallis646
I have a long travel to work. I use it, so I won't miss the right station to get off the train :)

@linusnielsen
Maybe it's more appropriate to count the ticks or using the timer provided by the api, but as PaulJam said, it would need more code to display the remaining time or to adjust the time.

update:
- fixed: loading another plugin won't show the dialog if timer has finished
- fixed: fully controllable via remote-control
Comment by x (vmh) - Friday, 18 April 2008, 20:09 GMT
changed alarm tone and other small changes
Comment by Vladimir Homutov (VL) - Friday, 19 June 2009, 23:09 GMT
Updated plugin to work with latest rockbox (rev 21354, 20 June 2009)

- works with new plugin API (http://svn.rockbox.org/viewvc.cgi?view=rev&revision=19776)
- removed SIMULATOR ifdefs - i found no problems with this plugin in simulator
- tested (a little) on iriver H340 - looks like it works
Comment by Vladimir Homutov (VL) - Friday, 19 June 2009, 23:11 GMT
oops, previous patch contains junk file, fixing
Comment by Rosso Maltese (asettico) - Saturday, 17 October 2009, 08:54 GMT
Sync to r23221.

Loading...