Index: apps/recorder/recording.c =================================================================== --- apps/recorder/recording.c (revision 21008) +++ apps/recorder/recording.c (working copy) @@ -1518,8 +1518,18 @@ update_countdown = 0; /* Update immediately */ break; #endif + case ACTION_REC_NEWFILE: + + /* Only act if in the middle of recording. */ + if(audio_stat & AUDIO_STATUS_RECORD) + { + rec_command(RECORDING_CMD_START_NEWFILE); + last_seconds = 0; + } + break; + case ACTION_REC_PAUSE: - case ACTION_REC_NEWFILE: + /* Only act if the mpeg is stopped */ if(!(audio_stat & AUDIO_STATUS_RECORD)) { @@ -1547,30 +1557,22 @@ peak_meter_set_trigger_listener(&trigger_listener); } } + /* If we're in the middle of recording */ else { - /*if new file button pressed, start new file */ - if (button == ACTION_REC_NEWFILE) + /* if pause button pressed, pause or resume */ + if(audio_stat & AUDIO_STATUS_PAUSE) { - rec_command(RECORDING_CMD_START_NEWFILE); - last_seconds = 0; + rec_command(RECORDING_CMD_RESUME); + if (global_settings.talk_menu) + { + /* no voice possible here, but a beep */ + audio_beep(HZ/4); /* short beep on resume */ + } } else - /* if pause button pressed, pause or resume */ { - if(audio_stat & AUDIO_STATUS_PAUSE) - { - rec_command(RECORDING_CMD_RESUME); - if (global_settings.talk_menu) - { - /* no voice possible here, but a beep */ - audio_beep(HZ/4); /* short beep on resume */ - } - } - else - { - rec_command(RECORDING_CMD_PAUSE); - } + rec_command(RECORDING_CMD_PAUSE); } } update_countdown = 0; /* Update immediately */ --- manual/main_menu/recording_screen.tex (revision 21008) +++ manual/main_menu/recording_screen.tex (working copy) @@ -43,8 +43,7 @@ % \opt{IRIVER_H10_PAD,IRIVER_H100_PAD,IRIVER_H300_PAD,IAUDIO_X5_PAD,% SANSA_E200_PAD,IPOD_4G_PAD,SANSA_C200_PAD}{ - \ActionRecNewfile & Starts recording.\\ - & While recording: close the current file and open + \ActionRecNewfile & While recording: close the current file and open a new one.\\ } % @@ -55,7 +54,6 @@ \ActionRecFTwo & Quick menu for recording settings. A quick press will leave the screen up (press \ActionRecFTwo{} again to exit), while holding it will close the screen when you release it.\\ - } % \opt{RECORDER_PAD}{ \ActionRecFThree & Quick menu for source setting.\\