Build doom on clipv2 and clip+
[kugel-rb.git] / apps / recorder / pcm_record.h
blobf29d0a5da8aed108f25d594321364bd38c4ac002
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by Linus Nielsen Feltzing
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef PCM_RECORD_H
23 #define PCM_RECORD_H
25 /** General functions for high level codec recording **/
26 /* pcm_rec_error_clear is deprecated for general use. audio_error_clear
27 should be used */
28 void pcm_rec_error_clear(void);
29 /* pcm_rec_status is deprecated for general use. audio_status merges the
30 results for consistency with the hardware codec version */
31 unsigned long pcm_rec_status(void);
32 unsigned long pcm_rec_get_warnings(void);
33 void pcm_rec_init(void);
34 int pcm_rec_current_bitrate(void);
35 int pcm_rec_encoder_afmt(void); /* AFMT_* value, AFMT_UNKNOWN if none */
36 int pcm_rec_rec_format(void); /* Format index or -1 otherwise */
37 unsigned long pcm_rec_sample_rate(void);
38 int pcm_get_num_unprocessed(void);
40 /* audio.h contains audio_* recording functions */
42 #endif /* PCM_RECORD_H */