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