format.h
来自「该软件 是 基于波形文件 的信息隐藏 的」· C头文件 代码 · 共 40 行
H
40 行
//---------------------------------------------------------------------------
#ifndef Format_H
#define Format_H
//---------------------------------------------------------------------------
struct FormatChunk
{
BYTE chunkID[4];
long sizeoffile;
BYTE wav[4];
BYTE fmtTag[4];
long SectionchunkSize;
unsigned short wFormatTag;
unsigned short wChannels;
unsigned long dwSamplesPerSec;
unsigned long dwAvgBytesPerSec;
unsigned short wBlockAlign;
unsigned short wBitsPerSample;
BYTE dataMark[4];
unsigned long sizeofdatachunk;
// Note: there may be additional fields here, depending upon wFormatTag.
};
// This is the start ID of a Wave file
// must contains 'RIFF' and 'WAVE'
char startID[12];
// contains the chunk id ('data', 'cue ' ...) and the chunk size
struct Chunk
{
char chunkID[4];
long chunkSize;
};
// a pointer to the samples in the data chunk
unsigned char *WaveformData;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?