soundtag.h
来自「语音识别:语音矢量化及算法及与原文件的矢量对比功能源代码」· C头文件 代码 · 共 48 行
H
48 行
#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 + =
减小字号Ctrl + -
显示快捷键?