Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#6297 - Recording countdown timer

Attached to Project: Rockbox
Opened by Martin Scarratt (mmmm-) - Monday, 06 November 2006, 11:06 GMT+2
Last edited by Alex Parker (BigBambi) - Saturday, 05 June 2010, 23:27 GMT+2
Task Type Patches
Category Recording
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This gives the option to set a countdown timer for delayed recording with a max timer of 1 week.

While the timer is ticking the remaining time/icon/inverted rtc display is shown in the statusbar depending on the size of the screen.
You may override the timer at any time by pressing the newfile button while in the recording screen and the timer is started/paused by pressing the pause button.

When the countdown has completed, recording will begin with the applied settings if you are already in the recording screen, or the statusbar timer display will flash to indicate that you should enter the recording screen where recording will begin automatically.

For the settings screen I have made a general function that can change any number of integer settings on one screen (set_multi_int()). This could also be used for the setting of the clock/date (or any other multi integer setting). The present clock setting function is not general enough to be used for other purposes.
   cntdntimer8.patch (29.4 KiB)
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   43 ++++++++++
 apps/gui/statusbar.c            |   86 ++++++++++++++++++++-
 apps/gui/statusbar.h            |   11 ++
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-x5.c        |    3 
 apps/lang/english.lang          |   80 +++++++++++++++++++
 apps/recorder/icons.c           |    7 +
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.c       |  107 +++++++++++++++++++++++++-
 apps/recorder/recording.h       |   12 ++
 12 files changed, 523 insertions(+), 12 deletions(-)

This task depends upon

Closed by  Alex Parker (BigBambi)
Saturday, 05 June 2010, 23:27 GMT+2
Reason for closing:  Rejected
Comment by Martin Scarratt (mmmm-) - Tuesday, 07 November 2006, 17:25 GMT+2
Update, to 20061107
Comment by Martin Scarratt (mmmm-) - Tuesday, 07 November 2006, 17:26 GMT+2
oops, wrong patch... here's the right patch...
   cntdntimer8.1.patch (29.5 KiB)
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   42 ++++++++++
 apps/gui/statusbar.c            |   89 +++++++++++++++++++++-
 apps/gui/statusbar.h            |   11 ++
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-x5.c        |    3 
 apps/lang/english.lang          |   80 +++++++++++++++++++
 apps/recorder/icons.c           |    7 +
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.c       |  107 +++++++++++++++++++++++++-
 apps/recorder/recording.h       |   12 ++
 12 files changed, 525 insertions(+), 12 deletions(-)

Comment by Martin Scarratt (mmmm-) - Tuesday, 12 December 2006, 23:29 GMT+2
New feature:
Repeat recording and menu rejig.

All timer settings (including filesplit etc) are under a menu in the recording settings called Timer options.

Setting "Record repeat every.." you can set a time for a repeated recording eg. set it for 1 hour and a recording will start every hour from when you start the first recording. This needs to be used in conjunction with timesplit option. "Split measure" and "What to do.." are automatically set to 'time' and 'stop' respectively when "Record repeat every.." is set. You need to set a "Split time" that is less than your "Record repeat every.." setting.

So eg.
First set "Record repeat every.." to 20 minutes
then "Split time" to 5 minutes.
Then go into the recording screen and press record

This will result in a 5 minute recording and then a 15 minute pause, then another 5 minute recording and 15 minute pause..etc etc until you stop the recording or pause the timer.

This can also be used in conjunction with the countdown timer to start the first recording at a specific time.
   cntdntimer9.patch (33.8 KiB)
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/gui/statusbar.c            |   91 +++++++++++++++++++++-
 apps/gui/statusbar.h            |   12 ++
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-x5.c        |    3 
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/recorder/icons.c           |    7 +
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.c       |  138 ++++++++++++++++++++++++++++++++--
 apps/recorder/recording.h       |   16 +++
 12 files changed, 607 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Sunday, 17 December 2006, 17:45 GMT+2
Right, now the repeat timer works properly and it also takes into account any prerecording to keep the recording times correct.
   cntdntimer9.1.patch (35.1 KiB)
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/gui/statusbar.c            |   91 +++++++++++++++++++++-
 apps/gui/statusbar.h            |   12 ++
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-x5.c        |    3 
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/recorder/icons.c           |    7 +
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.c       |  145 ++++++++++++++++++++++++++++++++++--
 apps/recorder/recording.h       |   16 +++
 12 files changed, 612 insertions(+), 21 deletions(-)

Comment by Martin Scarratt (mmmm-) - Monday, 18 December 2006, 14:15 GMT+2
Prevent possible bug if save takes longer than 1 minute
Comment by Martin Scarratt (mmmm-) - Saturday, 03 February 2007, 14:04 GMT+2
Update and possibly more accurate countdown timer.
   cntdntimer9.1.3.patch (33 KiB)
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.h       |   16 +++
 apps/recorder/icons.c           |    7 +
 apps/recorder/recording.c       |  146 ++++++++++++++++++++++++++++++++++--
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/gui/statusbar.c            |   91 +++++++++++++++++++++-
 apps/gui/statusbar.h            |   12 ++
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 12 files changed, 615 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Monday, 26 February 2007, 19:02 GMT+2
Update...
   cntdntimer9.1.5.patch (33 KiB)
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.h       |   16 +++
 apps/recorder/icons.c           |    7 +
 apps/recorder/recording.c       |  146 ++++++++++++++++++++++++++++++++++--
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/gui/statusbar.c            |   92 ++++++++++++++++++++++
 apps/gui/statusbar.h            |    7 +
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 12 files changed, 612 insertions(+), 18 deletions(-)

Comment by Martin Scarratt (mmmm-) - Tuesday, 27 February 2007, 19:09 GMT+2
Oops, I bodged that one...here's one that compiles for targets with RTC
   cntdntimer9.1.6.patch (33.1 KiB)
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.h       |   16 +++
 apps/recorder/icons.c           |    7 +
 apps/recorder/recording.c       |  146 ++++++++++++++++++++++++++++++++++--
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/gui/statusbar.c            |   94 ++++++++++++++++++++++-
 apps/gui/statusbar.h            |    7 +
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 12 files changed, 613 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Wednesday, 28 February 2007, 22:12 GMT+2
Yet another update....
   cntdntimer9.1.7.patch (33.2 KiB)
 apps/recorder/icons.h           |    6 +
 apps/recorder/recording.h       |   16 +++
 apps/recorder/icons.c           |    7 +
 apps/recorder/recording.c       |  146 ++++++++++++++++++++++++++++++++++--
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/settings.c                 |  161 ++++++++++++++++++++++++++++++++++++++++
 apps/gui/statusbar.c            |   94 ++++++++++++++++++++++-
 apps/gui/statusbar.h            |    7 +
 apps/settings.h                 |    8 +
 apps/sound_menu.c               |   74 +++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 12 files changed, 613 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Tuesday, 20 March 2007, 20:11 GMT+2
Updated to new menu code
Improved timer status indicators
Slightly better menu code
Comment by Martin Scarratt (mmmm-) - Tuesday, 20 March 2007, 20:32 GMT+2
oops...
   cntdntimer9.4.1.patch (36.4 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 ++++
 apps/recorder/icons.c           |   10 ++
 apps/recorder/recording.c       |  152 +++++++++++++++++++++++++++++++++++-
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/settings.c                 |  165 ++++++++++++++++++++++++++++++++++++++++
 apps/gui/statusbar.c            |  119 ++++++++++++++++++++++++++++
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    8 +
 apps/menus/recording_menu.c     |   81 ++++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-h10.c       |    7 +
 13 files changed, 668 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Thursday, 12 April 2007, 21:34 GMT+2
Update... and better code
   cntdntimer9.5.2.patch (36 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 ++++
 apps/recorder/icons.c           |   10 ++
 apps/recorder/recording.c       |  152 +++++++++++++++++++++++++++++++++++-
 apps/settings.c                 |  165 ++++++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang          |   99 +++++++++++++++++++++++-
 apps/gui/statusbar.c            |  106 ++++++++++++++++++++++++-
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    8 +
 apps/menus/recording_menu.c     |   81 ++++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-h10.c       |    7 +
 13 files changed, 655 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Friday, 13 April 2007, 01:17 GMT+2
A bit of tweaking. Menu works properly across all platforms.
   cntdntimer9.6.1.patch (36.2 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 ++++
 apps/recorder/icons.c           |   10 ++
 apps/recorder/recording.c       |  152 ++++++++++++++++++++++++++++++++++--
 apps/settings.c                 |  168 ++++++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang          |  100 +++++++++++++++++++++++
 apps/gui/statusbar.c            |  106 ++++++++++++++++++++++++-
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    8 +
 apps/menus/recording_menu.c     |   81 ++++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-h10.c       |    7 +
 13 files changed, 659 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Saturday, 14 April 2007, 01:20 GMT+2
Bug fix - Some display problems with the menu when using different fonts
   cntdntimer9.6.2.patch (36.2 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 ++++
 apps/recorder/icons.c           |   10 ++
 apps/recorder/recording.c       |  152 ++++++++++++++++++++++++++++++++++-
 apps/settings.c                 |  169 ++++++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang          |  100 ++++++++++++++++++++++-
 apps/gui/statusbar.c            |  104 +++++++++++++++++++++++-
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    8 +
 apps/menus/recording_menu.c     |   81 ++++++++++++++++++-
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 ++
 apps/keymaps/keymap-h10.c       |    7 +
 13 files changed, 658 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Sunday, 15 April 2007, 13:29 GMT+2
More menu improvements and better functionality
   cntdntimer9.7.1.patch (35.9 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 +++
 apps/recorder/icons.c           |   10 +-
 apps/recorder/recording.c       |  152 +++++++++++++++++++++++++++++++-
 apps/settings.c                 |  186 ++++++++++++++++++++++++++++++++++++++++
 apps/lang/english.lang          |  100 ++++++++++++++++++++-
 apps/gui/statusbar.c            |  104 +++++++++++++++++++++-
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    9 +
 apps/menus/recording_menu.c     |   73 +++++++++++++++
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 +-
 apps/keymaps/keymap-h10.c       |    7 +
 13 files changed, 668 insertions(+), 19 deletions(-)

Comment by Martin Scarratt (mmmm-) - Tuesday, 17 April 2007, 22:20 GMT+2
Now compatible with proportional fonts.
Nullpointer error when setting the repeat timer FIXED.
Ondio keymap and lang string.

   cntdntimer9.8.2.patch (37.2 KiB)
 apps/recorder/icons.h           |    7 +
 apps/recorder/recording.h       |   17 +++
 apps/recorder/icons.c           |   10 +-
 apps/recorder/recording.c       |  152 +++++++++++++++++++++++++++++-
 apps/lang/english.lang          |  109 +++++++++++++++++++++
 apps/settings.c                 |  200 ++++++++++++++++++++++++++++++++++++++++
 apps/gui/statusbar.c            |  104 ++++++++++++++++++++
 apps/gui/statusbar.h            |    8 +
 apps/settings.h                 |    9 +
 apps/menus/recording_menu.c     |   73 ++++++++++++++
 apps/keymaps/keymap-x5.c        |    3 
 apps/keymaps/keymap-h1x0_h3x0.c |   11 +-
 apps/keymaps/keymap-h10.c       |    7 +
 apps/keymaps/keymap-ondio.c     |    7 -
 14 files changed, 698 insertions(+), 19 deletions(-)

Comment by Sanggon, Lee (isanggon) - Thursday, 24 July 2008, 04:18 GMT+2
related patch is here. attached with histogram patch, but needed some more work.
http://www.rockbox.org/tracker/task/5021

Loading...