📄 pmp3enc_lib.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -