summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-24 22:30:55 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-24 22:30:55 +0000
commit0e8169c12a2c803de595dd8a6d02923a54ae8268 (patch)
treea7d55127fdabf1eb71eba85cc65fd306d01b15bf /apps/recorder
parent4dab0d24329a01d46505f8648dffd4501c796463 (diff)
downloadrockbox-0e8169c12a2c803de595dd8a6d02923a54ae8268.tar.gz
rockbox-0e8169c12a2c803de595dd8a6d02923a54ae8268.zip
Fixes: (1) Menu now disabled while recording, to prevent settings change. (2) Red led is switched off before entering menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5339 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index cdffeffc82..bf25c877b5 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -444,26 +444,30 @@ bool recording_screen(void)
#ifdef REC_SETTINGS
case REC_SETTINGS:
- if (recording_menu(false))
- return SYS_USB_CONNECTED;
- settings_save();
-
- if (global_settings.rec_prerecord_time)
- talk_buffer_steal(); /* will use the mp3 buffer */
-
- mpeg_set_recording_options(global_settings.rec_frequency,
- global_settings.rec_quality,
- global_settings.rec_source,
- global_settings.rec_channels,
- global_settings.rec_editable,
- global_settings.rec_prerecord_time);
+ if(mpeg_status() != MPEG_STATUS_RECORD)
+ {
+ invert_led(false);
+ if (recording_menu(false))
+ return SYS_USB_CONNECTED;
+ settings_save();
+
+ if (global_settings.rec_prerecord_time)
+ talk_buffer_steal(); /* will use the mp3 buffer */
+
+ mpeg_set_recording_options(global_settings.rec_frequency,
+ global_settings.rec_quality,
+ global_settings.rec_source,
+ global_settings.rec_channels,
+ global_settings.rec_editable,
+ global_settings.rec_prerecord_time);
- set_gain();
+ set_gain();
- update_countdown = 1; /* Update immediately */
+ update_countdown = 1; /* Update immediately */
- lcd_setfont(FONT_SYSFIXED);
- lcd_setmargins(global_settings.invert_cursor ? 0 : w, 8);
+ lcd_setfont(FONT_SYSFIXED);
+ lcd_setmargins(global_settings.invert_cursor ? 0 : w, 8);
+ }
break;
#endif