diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-12-31 03:13:29 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-12-31 03:13:29 +0000 |
commit | 74976c1484d7c8a89a290ffc7e4a7525874278b4 (patch) | |
tree | 23f6f2e53f5f8ab6e9476b412cc56e15801914dd /apps/sound_menu.c | |
parent | 1c4ea83bba9ce7ec7ede6141c1ee66c12c20f1d6 (diff) | |
download | rockbox-74976c1484d7c8a89a290ffc7e4a7525874278b4.tar.gz rockbox-74976c1484d7c8a89a290ffc7e4a7525874278b4.zip |
New recording feature: Prerecord up to 30 seconds before you press the Play key. Especially useful for FM radio recording. Also fixed a bug which didn't apply the recording settings correctly in the Radio screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4183 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index c5e254794e..557013df8a 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -241,6 +241,20 @@ static bool rectimesplit(void) | |||
241 | names, 14, NULL ); | 241 | names, 14, NULL ); |
242 | } | 242 | } |
243 | 243 | ||
244 | static bool recprerecord(void) | ||
245 | { | ||
246 | char *names[] = { | ||
247 | str(LANG_OFF),"1s","2s", "3s", "4s", "5s", "6s", "7s", "8s", "9s", | ||
248 | "10s", "11s", "12s", "13s", "14s", "15s", "16s", "17s", "18s", "19s", | ||
249 | "20s", "21s", "22s", "23s", "24s", "25s", "26s", "27s", "28s", "29s", | ||
250 | "30s" | ||
251 | }; | ||
252 | |||
253 | return set_option(str(LANG_RECORD_PRERECORD_TIME), | ||
254 | &global_settings.rec_prerecord_time, INT, | ||
255 | names, 31, NULL ); | ||
256 | } | ||
257 | |||
244 | #endif /* HAVE_MAS3587F */ | 258 | #endif /* HAVE_MAS3587F */ |
245 | 259 | ||
246 | static void set_chanconf(int val) | 260 | static void set_chanconf(int val) |
@@ -294,7 +308,7 @@ bool recording_menu(bool no_source) | |||
294 | { | 308 | { |
295 | int m; | 309 | int m; |
296 | int i = 0; | 310 | int i = 0; |
297 | struct menu_items menu[6]; | 311 | struct menu_items menu[7]; |
298 | bool result; | 312 | bool result; |
299 | 313 | ||
300 | menu[i].desc = str(LANG_RECORDING_QUALITY); | 314 | menu[i].desc = str(LANG_RECORDING_QUALITY); |
@@ -311,6 +325,8 @@ bool recording_menu(bool no_source) | |||
311 | menu[i++].function = receditable; | 325 | menu[i++].function = receditable; |
312 | menu[i].desc = str(LANG_RECORD_TIMESPLIT); | 326 | menu[i].desc = str(LANG_RECORD_TIMESPLIT); |
313 | menu[i++].function = rectimesplit; | 327 | menu[i++].function = rectimesplit; |
328 | menu[i].desc = str(LANG_RECORD_PRERECORD_TIME); | ||
329 | menu[i++].function = recprerecord; | ||
314 | 330 | ||
315 | m=menu_init( menu, i ); | 331 | m=menu_init( menu, i ); |
316 | result = menu_run(m); | 332 | result = menu_run(m); |