pmp3enc_lib.h
来自「瑞星微公司RK27XX系列芯片的SDK开发包」· C头文件 代码 · 共 59 行
H
59 行
#define MP3_MAX_PCM_LENGTH 1152
//****************************************************************************
//
// A structure which defines the persistent state of the MP3 decoder.
//
//****************************************************************************
#define PCM_BUFFER_SIZE (2 * MP3_MAX_PCM_LENGTH)
#define ENCODED_DATA_SIZE 2048
#define ENCODED_DATA_WRITE_SIZE 1024
#define LEFT_PCM_BUFFER pMP3ENC->psLeft
#define RIGHT_PCM_BUFFER pMP3ENC->psRight
#define pENCODED_DATA (pMP3ENC->pcEncodedData)
typedef struct
{
// A pointer to the buffer containing the persistent internal state of the
// MP3 encoder library.
tMP3ENCInstance *pMPEGInstance;
// The file from which we read data.
// tFile *pFile;
// A buffer to contain the encoded MP3 audio.
char pcEncodedData[ENCODED_DATA_SIZE];
// Buffers to contain the ADC samples
short psLeft[PCM_BUFFER_SIZE];
short psRight[PCM_BUFFER_SIZE];
// The buffer to which we write decoded MP3 data.
BufferState *pOutput;
// The sample rate of the decoded PCM stream.
unsigned short usSampleRate;
// The number of channels in the file.
unsigned char ucChannels;
// The time length of the file.
unsigned long ulTimeLength;
// The bit rate of the MP3 file.
unsigned long ulBitRate;
// The number of samples which have been decoded.
unsigned long ulTimePos;
} tMP3ENC;
extern unsigned short usBRMap[];
extern unsigned short usSRMap[];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?