📄 soundtag.h
字号:
#ifndef _SOUNDTAG_H_
#define _SOUNDTAG_H_
#ifdef __cplusplus
extern "C"{
#endif
/*typedef struct
{
int mValue[13];
int eValue;
} TSoundTag;
*/
typedef struct
{
short mValue[13];
unsigned short eValue;
short _dummy[2]; //填充字节,保证结构按照32字节对齐
} TSoundTag;
typedef struct
{
int last_result[17]; //暂存上一次的计算结果
int sample_size;
short samples[1];
}TInputBuffer;
typedef struct
{
int size;
int leftSampleSize;
int last_result[17];
short leftSamples[4096];
TSoundTag tags[1];
}TOutputBuffer;
#ifdef __cplusplus
}
#endif
#endif //_SOUNDTAG_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -