1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
23 bool in_recording_screen(void);
24 bool recording_screen(bool no_source
);
25 char *rec_create_filename(char *buf
);
26 int rec_create_directory(void);
27 void settings_apply_trigger(void);
29 /* If true, start recording automatically when recording_sreen() is entered */
30 extern bool recording_start_automatic
;
32 #if CONFIG_CODEC == SWCODEC
33 /* handles device powerup, sets audio source and peakmeter mode */
34 void rec_set_source(int source
, unsigned flags
);
35 #endif /* CONFIG_CODEC == SW_CODEC */
37 /* Initializes a recording_options structure with global settings.
38 pass returned data to audio_set_recording_options or
39 rec_set_recording_options */
40 void rec_init_recording_options(struct audio_recording_options
*options
);
41 /* steals mp3 buffer, sets source and then options */
42 /* SRCF_RECORDING is implied for SWCODEC */
43 void rec_set_recording_options(struct audio_recording_options
*options
);
45 enum recording_command
48 RECORDING_CMD_START
, /* steal mp3 buffer, create unique filename and
50 RECORDING_CMD_START_NEWFILE
, /* create unique filename and start recording*/
55 /* centralized way to start/stop/... recording */
56 void rec_command(enum recording_command rec_cmd
);
58 #endif /* RECORDING_H */