summaryrefslogtreecommitdiff
path: root/audio_codec/libcook/cook_codec.h (plain)
blob: fc59bd6295a6b080bab1664c7c1e8e9979692f37
1#ifndef COOK_CODEC_HEADERS
2#define COOK_CODEC_HEADERS
3
4
5#define SUB_FMT_VALID (1<<1)
6#define CHANNEL_VALID (1<<2)
7#define SAMPLE_RATE_VALID (1<<3)
8#define DATA_WIDTH_VALID (1<<4)
9
10#define AUDIO_EXTRA_DATA_SIZE (2048*2)
11
12struct audio_info {
13 int valid;
14 int sample_rate;
15 int channels;
16 int bitrate;
17 int codec_id;
18 int block_align;
19 int extradata_size;
20 char extradata[AUDIO_EXTRA_DATA_SIZE];
21};
22#if 0
23typedef enum {
24 DECODE_INIT_ERR,
25 DECODE_FATAL_ERR,
26} err_code_t;
27#endif
28
29#endif
30
31