- Status Closed
- Percent Complete
- Task Type Patches
- Category Plugins
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Daily build (which?)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#8865 - timer plugin
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
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
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.
I can think of a few more uses, like a kitchen timer (egg boiling, cake baking etc), not only in the gym.
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?
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).
I think it’s a bad idea, since the sleep timer is totally unrelated.
@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
changed alarm tone and other small changes
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
oops, previous patch contains junk file, fixing
Sync to r23221.