📄 pac3_dec.h
字号:
#ifndef _PAC3_DEC_H_
#define _PAC3_DEC_H_
#include "../buffer/buffer.h"
//--------------------------------------------
#define AC3LENGTH (8192+50)
typedef struct
{
long status;
short AC3left[AC3LENGTH];
short AC3right[AC3LENGTH];
BufferState *pOutput;
int buffer_ptr[2];
//unsigned short usValid;
unsigned short usSampleRate;
unsigned char ucChannels;
//unsigned char ucIsVBR;
//unsigned long ulFirstFrame;
unsigned long ulLength;
// The number of samples in each encoded block of audio.
//unsigned short usSamplesPerBlock; // block
// The length of the file in milliseconds.
unsigned long ulTimeLength;
unsigned long ulBitRate;
// The number of samples that have been encoded/decoded.
unsigned long ulTimePos;
} tAC3;
typedef void a52_state_t;
typedef char int8_t;
typedef short int16_t;
typedef long int32_t;
typedef __int64 int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long uint32_t;
typedef int32_t sample_t;
typedef int32_t level_t;
extern a52_state_t * a52_init(uint32_t mm_accel);
extern void a52_free(a52_state_t * state);
extern int a52_syncinfo(uint8_t * buf, int * flags,
int * sample_rate, int * bit_rate);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -