summaryrefslogtreecommitdiff
path: root/firmware/export/pcm_record.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/pcm_record.h')
-rw-r--r--firmware/export/pcm_record.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/firmware/export/pcm_record.h b/firmware/export/pcm_record.h
new file mode 100644
index 0000000000..964d3a003e
--- /dev/null
+++ b/firmware/export/pcm_record.h
@@ -0,0 +1,51 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
11 *
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.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20/*
21 * Function names are taken from apps/recorder/recording.c to
22 * make the integration later easier..
23 *
24 */
25
26#ifndef PCM_RECORD_H
27#define PCM_RECORD_H
28
29unsigned long pcm_status(void);
30
31void pcm_init_recording(void);
32
33void pcm_open_recording(void);
34void pcm_close_recording(void);
35
36
37void pcm_set_recording_options(int source, bool enable_waveform);
38void pcm_set_recording_gain(int gain, int volume);
39
40void pcm_record(const char *filename);
41void pcm_stop_recording(void);
42
43//void pcm_new_file(const char *filename);
44
45
46unsigned long pcm_recorded_time(void);
47unsigned long pcm_num_recorded_bytes(void);
48void pcm_pause_recording(void);
49void pcm_resume_recording(void);
50
51#endif