autodetection: convert path to native separators before displaying it.
[Rockbox.git] / apps / recorder / recording.h
blob11d6e86e8c9212431f63bfc0f4effca2e5d067a2
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 ****************************************************************************/
19 #ifndef RECORDING_H
20 #define RECORDING_H
21 #include "audio.h"
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
47 RECORDING_CMD_STOP,
48 RECORDING_CMD_START, /* steal mp3 buffer, create unique filename and
49 start recording */
50 RECORDING_CMD_START_NEWFILE, /* create unique filename and start recording*/
51 RECORDING_CMD_PAUSE,
52 RECORDING_CMD_RESUME,
53 RECORDING_CMD_STOP_SHUTDOWN /* stop recording and shutdown */
56 /* centralized way to start/stop/... recording */
57 void rec_command(enum recording_command rec_cmd);
59 #endif /* RECORDING_H */