summaryrefslogtreecommitdiff
path: root/audio_codec/libcook/cook_decode.h (plain)
blob: 693a3b793fae0bd4a53fbb9d52b85336ad528dfc
1#ifndef _AUDIO_CODEC_RA_H
2#define _AUDIO_CODEC_RA_H
3
4#include "rm_parse.h"
5#include "ra_depack.h"
6#include "ra_decode.h"
7
8
9typedef struct {
10 ra_decode* pDecode;
11 ra_format_info* pRaInfo;
12 BYTE* pOutBuf;
13 UINT32 ulOutBufSize;
14 UINT32 ulTotalSample;
15 UINT32 ulTotalSamplePlayed;
16 UINT32 ulStatus;
17 UINT32 input_buffer_size;
18 BYTE* input_buf;
19 UINT32 decoded_size;
20
21} ra_decoder_info_t;
22
23typedef enum {
24 DECODE_INIT_ERR,
25 DECODE_FATAL_ERR,
26} error_code_t;
27
28
29#define RADEC_IDLE 0
30#define RADEC_INIT 1
31#define RADEC_PLAY 2
32#define RADEC_PAUSE 3
33
34#define USE_C_DECODER
35#endif
36