summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-08-28 22:38:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-08-28 22:38:41 +0000
commit4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d (patch)
treeeb6113c7491072f7b5136e24775737764e2cdede /apps/recorder/recording.h
parent65c2c58b3aa26164bd919665e4d710efa2fa7c79 (diff)
downloadrockbox-4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d.tar.gz
rockbox-4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d.zip
Added FS#2939 Encoder Codec Interface + Codecs by Antonius Hellmann with additional FM Recording support and my modifications
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10789 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.h')
-rw-r--r--apps/recorder/recording.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h
index 384b34f5bf..aa216e757f 100644
--- a/apps/recorder/recording.h
+++ b/apps/recorder/recording.h
@@ -19,8 +19,33 @@
19#ifndef RECORDING_H 19#ifndef RECORDING_H
20#define RECORDING_H 20#define RECORDING_H
21 21
22bool recording_screen(void); 22bool recording_screen(bool no_source);
23char *rec_create_filename(char *buf); 23char *rec_create_filename(char *buf);
24int rec_create_directory(void); 24int rec_create_directory(void);
25 25
26#if CONFIG_CODEC == SWCODEC
27/* selects an audio source for recording or playback */
28#define SRCF_PLAYBACK 0x0000 /* default */
29#define SRCF_RECORDING 0x1000
30#ifdef CONFIG_TUNER
31/* for AUDIO_SRC_FMRADIO */
32#define SRCF_FMRADIO_PLAYING 0x0000 /* default */
33#define SRCF_FMRADIO_PAUSED 0x2000
34#endif
35void rec_set_source(int source, int flags);
36#endif /* CONFIG_CODEC == SW_CODEC */
37
38/* steals mp3 buffer, sets source and then options */
39/* SRCF_RECORDING is implied */
40void rec_set_recording_options(int frequency, int quality,
41 int source, int source_flags,
42 int channel_mode, bool editable,
43 int prerecord_time);
44
45/* steals mp3 buffer, creates unique filename and starts recording */
46void rec_record(void);
47
48/* creates unique filename and starts recording */
49void rec_new_file(void);
50
26#endif 51#endif