545 files changed, 230976 insertions, 0 deletions
diff --git a/audio_codec/libcook/cook_codec.h b/audio_codec/libcook/cook_codec.h new file mode 100644 index 0000000..fc59bd6 --- a/dev/null +++ b/audio_codec/libcook/cook_codec.h @@ -0,0 +1,30 @@ +#ifndef COOK_CODEC_HEADERS +#define COOK_CODEC_HEADERS + + +#define SUB_FMT_VALID (1<<1) +#define CHANNEL_VALID (1<<2) +#define SAMPLE_RATE_VALID (1<<3) +#define DATA_WIDTH_VALID (1<<4) + +#define AUDIO_EXTRA_DATA_SIZE (2048*2) + +struct audio_info { + int valid; + int sample_rate; + int channels; + int bitrate; + int codec_id; + int block_align; + int extradata_size; + char extradata[AUDIO_EXTRA_DATA_SIZE]; +}; +#if 0 +typedef enum { + DECODE_INIT_ERR, + DECODE_FATAL_ERR, +} err_code_t; +#endif + +#endif + |