This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6044 - New Alarm Plugin
Attached to Project:
Rockbox
Opened by Victor Rajewski (vik) - Friday, 22 September 2006, 11:08 GMT+2
Last edited by Alex Parker (BigBambi) - Saturday, 05 June 2010, 19:20 GMT+2
Opened by Victor Rajewski (vik) - Friday, 22 September 2006, 11:08 GMT+2
Last edited by Alex Parker (BigBambi) - Saturday, 05 June 2010, 19:20 GMT+2
|
DetailsThis plugin provide alarm functionality for any player with a RTC. It cannot wake the player up from sleep, so the player must be on the whole time, and when the alarm ticks over, it starts playing music. This is useful if you connect it to external speakers and a power supply and leave it on overnight to get woken in the morning. It can ramp the volume up over a given time to wake you up more gently, and (will soon have) an adjustable snooze setting. Has only been tested on an iriver H300 at the moment, but the code should be relatively portable.
To use it, start playing the song or playlist that you want to wake up to, then start the plugin which will pause the song. Loosely based on Ivo Burkart's alarm.c http://www.rockbox.org/tracker/2021 |
This task depends upon
Closed by Alex Parker (BigBambi)
Saturday, 05 June 2010, 19:20 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Rockbox now has an alarm
Saturday, 05 June 2010, 19:20 GMT+2
Reason for closing: Out of Date
Additional comments about closing: Rockbox now has an alarm
CC alarm.c
alarm.c:26: error: redefinition of typedef 'time_t'
/home/Jon/rockbox/firmware/include/time.h:24: error: previous declaration of 'ti
me_t' was here
make[2]: *** [/home/Jon/rockbox/5gbuild/apps/plugins/alarm.o] Error 1
I download the patch file and applied it. I didn't get the c file. I got a hunk error in sources and I fix that. But when compiling I get the following error:
alarm.c:26: error: redefinition of typedef 'time_t'
/home/daniel/rockbox/firmware/include/time.h:24: error: previous declaration of
'time_t' was here
alarm.c:65: error: conflicting types for 'format_time'
/home/daniel/rockbox/apps/misc.h:59: error: previous declaration of 'format_time
' was here
alarm.c:65: error: conflicting types for 'format_time'
/home/daniel/rockbox/apps/misc.h:59: error: previous declaration of 'format_time
' was here
alarm.c: In function `save_settings':
alarm.c:118: error: too many arguments to function
alarm.c: In function `alarm_options_menu':
alarm.c:303: error: elements of array `items' have incomplete type
alarm.c:304: warning: excess elements in struct initializer
alarm.c:304: warning: (near initialization for `items[0]')
alarm.c:304: warning: excess elements in struct initializer
alarm.c:304: warning: (near initialization for `items[0]')
alarm.c:305: warning: excess elements in struct initializer
alarm.c:305: warning: (near initialization for `items[1]')
alarm.c:305: warning: excess elements in struct initializer
alarm.c:305: warning: (near initialization for `items[1]')
alarm.c:306: warning: excess elements in struct initializer
alarm.c:306: warning: (near initialization for `items[2]')
alarm.c:306: warning: excess elements in struct initializer
alarm.c:306: warning: (near initialization for `items[2]')
alarm.c:307: warning: excess elements in struct initializer
alarm.c:307: warning: (near initialization for `items[3]')
alarm.c:307: warning: excess elements in struct initializer
alarm.c:307: warning: (near initialization for `items[3]')
alarm.c:308: warning: excess elements in struct initializer
alarm.c:308: warning: (near initialization for `items[4]')
alarm.c:308: warning: excess elements in struct initializer
alarm.c:308: warning: (near initialization for `items[4]')
alarm.c:303: error: storage size of 'items' isn't known
alarm.c:310: error: structure has no member named `menu_init'
alarm.c:311: error: structure has no member named `menu_run'
alarm.c:312: error: structure has no member named `menu_exit'
alarm.c:303: warning: unused variable `items'
alarm.c: In function `plugin_start':
alarm.c:363: warning: passing arg 2 of pointer to function makes pointer from in
teger without a cast
Also what should I do with the c file?
Could you please tell me how I can get this to work?
Thanks.
Fs#7814
Allows it to work on the h300. So I am not sure this patche is needed any more.
Also I think this is a bit out of date.