📄 mp3locals.h
字号:
#ifndef _MP3DEC_H_
#define _MP3DEC_H_
#include "mad.h"
#include "mp3decode.h"
#define MP3DEC_ERR_GENERAL (-1) /* 一般出错 */
#define MP3DEC_ERR_FATAL (-2) /* 致命出错 */
#define MP3DEC_OK (0) /* 正常解码 */
#define MP3DEC_ERR_DATAREQ (1) /* 输入缓冲区欠载 */
#define MP3DEC_ERR_OUTPUTBUF (2) /* 输出缓冲区不够大 */
#define MP3DEC_ERR_CANRECOV (3) /* 可恢复的错误 */
#undef INPUT_BUFFER_SIZE
#define INPUT_BUFFER_SIZE (1*8192) /* 解码内部缓冲区大小 */
typedef struct tagMp3DecodeCtrl
{
struct mad_stream Stream ;
struct mad_frame Frame ;
struct mad_synth Synth ;
mad_timer_t Timer ;
int r_h ; /* ring-buffer OP handle, data is store in ring-buffer*/
unsigned char *outbuf ;
int outbuf_len ;
int output_len ;
unsigned char InputBuffer[INPUT_BUFFER_SIZE+MAD_BUFFER_GUARD] ; /* Inteal buffer */
unsigned long FrameCount ;
Mp3Option_t *pMp3Option ;
Mp3Info_t *pMp3Info ; /* store info for mp3 */
} Mp3DecodeCtrl_t, *pMp3DecodeCtrl_t ;
int Mp3DecodeStart(Mp3DecodeCtrl_t *pMp3DecCtrl) ;
int Mp3DecodeFrame(Mp3DecodeCtrl_t *pMp3DecCtrl) ;
int Mp3DecodeEnd(Mp3DecodeCtrl_t *pMp3DecCtrl) ;
#endif /* end #ifdef _MP3DEC_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -